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 {
5151 if (! skipSonarlint) {
5252 apply plugin : " name.remal.sonarlint"
5353 }
54+
55+ java {
56+ toolchain {
57+ // Nails the Java-Version of every Subproject
58+ languageVersion = JavaLanguageVersion . of(21 )
59+ }
60+ }
5461
5562 // sonarlint configuration, not to be confused with sonarqube/sonarcloud.
5663 sonarLint {
@@ -61,17 +68,6 @@ subprojects {
6168 }
6269 }
6370
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-
7571 spotless {
7672 java {
7773 // 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+
15rootProject. name = ' TJ-Bot'
26
37include ' application'
48include ' database'
59include ' formatter'
610include ' utils'
7-
You can’t perform that action at this time.
0 commit comments