File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ subprojects {
51
51
if (! skipSonarlint) {
52
52
apply plugin : " name.remal.sonarlint"
53
53
}
54
+
55
+ java {
56
+ toolchain {
57
+ // Nails the Java-Version of every Subproject
58
+ languageVersion = JavaLanguageVersion . of(21 )
59
+ }
60
+ }
54
61
55
62
// sonarlint configuration, not to be confused with sonarqube/sonarcloud.
56
63
sonarLint {
@@ -61,17 +68,6 @@ subprojects {
61
68
}
62
69
}
63
70
64
- def compileTasks = {
65
- options. encoding = ' UTF-8'
66
-
67
- // Nails the Java-Version of every Subproject
68
- sourceCompatibility = JavaVersion . VERSION_21
69
- targetCompatibility = JavaVersion . VERSION_21
70
- }
71
-
72
- compileJava(compileTasks)
73
- compileTestJava(compileTasks)
74
-
75
71
spotless {
76
72
java {
77
73
// Excludes build folder since it contains generated java classes.
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id ' org.gradle.toolchains.foojay-resolver-convention' version ' 0.7.0'
3
+ }
4
+
1
5
rootProject. name = ' TJ-Bot'
2
6
3
7
include ' application'
4
8
include ' database'
5
9
include ' formatter'
6
10
include ' utils'
7
-
You can’t perform that action at this time.
0 commit comments