File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ tasks.withType<GenerateTask> {
47
47
}
48
48
49
49
tasks.withType<JavaCompile >().configureEach {
50
- targetCompatibility = " 11"
51
- sourceCompatibility = " 11"
52
-
53
50
// Disable errorprone for this module
54
51
options.errorprone.disableAllChecks.set(true )
55
52
}
Original file line number Diff line number Diff line change @@ -88,18 +88,17 @@ subprojects {
88
88
89
89
dependencies { errorprone(" com.google.errorprone:error_prone_core:2.13.1" ) }
90
90
91
+ // Configure the java toolchain to use. If not found, it will be downloaded automatically
91
92
java {
92
93
toolchain { languageVersion = JavaLanguageVersion .of(11 ) }
94
+
93
95
withJavadocJar()
94
96
withSourcesJar()
95
97
}
96
98
97
99
protobuf { protoc { artifact = " com.google.protobuf:protoc:$protobufVersion " } }
98
100
99
101
tasks.withType<JavaCompile >().configureEach {
100
- targetCompatibility = " 11"
101
- sourceCompatibility = " 11"
102
-
103
102
options.errorprone.disableWarningsInGeneratedCode.set(true )
104
103
options.errorprone.disable(
105
104
// We use toString() in proto messages for debugging reasons.
Original file line number Diff line number Diff line change 9
9
10
10
rootProject.name = " sdk-java"
11
11
12
+ plugins { id(" org.gradle.toolchains.foojay-resolver-convention" ) version " 0.7.0" }
13
+
12
14
include(
13
15
" sdk-common" ,
14
16
" sdk-api" ,
You can’t perform that action at this time.
0 commit comments