-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (55 loc) · 1.92 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
plugins {
id 'java'
id 'maven-publish'
}
group 'com.thewaterfall.throttler'
version '1.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile) {
options.release = 17
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.thewaterfall'
artifactId = 'throttler'
version = '1.0.1-SNAPSHOT'
from components.java
pom {
name = 'Spring Rate-Throttler'
description = 'A library for rate-limiting (throttling) HTTP requests in Spring applications. ' +
'It provides annotations to be used on controller methods or classes to enforce ' +
'rate-limiting and uses a token bucket algorithm to limit the number of requests that ' +
'can be made in a certain period of time.'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
}
}
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly 'jakarta.servlet:jakarta.servlet-api:6.0.0'
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
implementation 'org.springframework:spring-core:6.0.8'
implementation 'org.springframework:spring-web:6.0.8'
implementation 'org.springframework:spring-webmvc:6.0.8'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.6'
implementation 'org.isomorphism:token-bucket:1.6'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
test {
useJUnitPlatform()
}