Skip to content

Commit 4759815

Browse files
liangyuanpenglburgazzoli
authored andcommitted
Update compile version to java11.
Signed-off-by: Lan Liang <[email protected]>
1 parent c916bef commit 4759815

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jetcd is the official java client for [etcd](https://github.com/etcd-io/etcd) v3
1010
1111
## Java Versions
1212

13-
Java 8 or above is required.
13+
Java 11 or above is required.
1414

1515
## Download
1616

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ subprojects {
6363
}
6464

6565
compileJava {
66-
options.release = 8
66+
options.release = 11
6767
}
6868

6969
test {

gradle/libs.versions.toml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ errorprone = "2.24.1"
1717
vertx = "4.5.1"
1818
picocli = "4.7.5"
1919
restAssured = "5.4.0"
20+
javaxAnnotation = "1.3.2"
2021

2122
versionsPlugin = "0.50.0"
2223
errorPronePlugin = "3.1.0"
@@ -28,6 +29,7 @@ nexusPublishPlugin = "1.3.0"
2829
axionReleasePlugin = "1.16.1"
2930
testRetryPlugin = "1.5.8"
3031

32+
3133
[libraries]
3234
slf4j = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
3335
guava = { module = "com.google.guava:guava", version.ref = "guava" }
@@ -64,6 +66,7 @@ log4j12 = { module = "org.apache.logging.log4j:log4j-1.2-api", version.ref = "lo
6466
autoServiceAnnotations = { module = "com.google.auto.service:auto-service-annotations", version.ref = "autoService"}
6567
autoServiceProcessor = { module = "com.google.auto.service:auto-service", version.ref = "autoService"}
6668

69+
javaxAnnotation = { module = "javax.annotation:javax.annotation-api", version.ref = "javaxAnnotation" }
6770

6871
errorprone = { module = "com.google.errorprone:error_prone_core", version.ref = "errorprone" }
6972
errorproneAnnotations = { module = "com.google.errorprone:error_prone_annotations", version.ref = "errorprone" }
@@ -75,6 +78,7 @@ grpcTest = [ "grpcInprocess"]
7578
log4j = [ "log4jApi", "log4jCore", "log4jSlf4j", "log4j12" ]
7679
mockito = [ "mockitoCore", "mockitoJunit" ]
7780
testing = ["junit", "assertj", "mockitoCore", "mockitoJunit"]
81+
javax = [ "javaxAnnotation" ]
7882

7983

8084
[plugins]

jetcd-grpc/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dependencies {
2222
api libs.slf4j
2323
api libs.vertxGrpc
2424
api libs.bundles.grpc
25+
api libs.bundles.javax
2526
}
2627

2728
protobuf {

0 commit comments

Comments
 (0)