File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ subprojects {
30
30
' commons_compress' : ' 1.21' ,
31
31
' guava' : ' 29.0-jre' ,
32
32
' jackson_databind' : ' 2.15.1' ,
33
+ ' jdk' : ' 8' ,
33
34
' junit' : ' 4.12' ,
34
35
' mockito' : ' 2.27.0' ,
35
36
' slf4j' : ' 1.7.36' ,
@@ -82,8 +83,17 @@ subprojects {
82
83
check. dependsOn(editorconfigChecker)
83
84
check. dependsOn(javadoc)
84
85
85
- sourceCompatibility = 1.8
86
- targetCompatibility = 1.8
86
+ java {
87
+ toolchain {
88
+ languageVersion = JavaLanguageVersion . of(versions. jdk)
89
+ }
90
+ }
91
+
92
+ tasks. withType(JavaExec ) {
93
+ javaLauncher = javaToolchains. launcherFor {
94
+ languageVersion = java. toolchain. languageVersion
95
+ }
96
+ }
87
97
88
98
tasks. withType(JavaCompile ) {
89
99
' all -processing -rawtypes -serial' . split(). each {
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ plugins {
18
+ id ' org.gradle.toolchains.foojay-resolver-convention' version ' 0.8.0'
19
+ }
20
+
17
21
rootProject. name = ' metafacture-core'
18
22
19
23
include ' :metafacture-commons'
You can’t perform that action at this time.
0 commit comments