Skip to content

Commit

Permalink
Fix all the JVM toolchain stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Sep 4, 2024
1 parent 37ece2c commit f199be3
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
jvm-version: [17]
jvm-version: [ 11 ]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion basics/basics-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
// Setup Java/Kotlin compiler target
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(11))
}
}

Expand Down
3 changes: 3 additions & 0 deletions basics/basics-kotlin/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ allprojects {

java {
// Configure the java toolchain to use. If not found, it will be downloaded automatically
toolchain { languageVersion = JavaLanguageVersion.of(17) }
toolchain { languageVersion = JavaLanguageVersion.of(11) }
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}

rootProject.name = "food-ordering-app"
include("restaurant", "restate-app")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}

rootProject.name = "food-ordering-app"
include("restaurant", "restate-app")

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}

rootProject.name = "java-spring"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}
3 changes: 3 additions & 0 deletions patterns-use-cases/sagas/sagas-java/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}
2 changes: 1 addition & 1 deletion patterns-use-cases/sagas/sagas-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ dependencies {
// Setup Java/Kotlin compiler target
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(11))
}
}
3 changes: 3 additions & 0 deletions patterns-use-cases/sagas/sagas-kotlin/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}
4 changes: 2 additions & 2 deletions templates/java-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<restate.version>1.0.1</restate.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion templates/kotlin-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
// Setup Java/Kotlin compiler target
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(11))
}
}

Expand Down
3 changes: 3 additions & 0 deletions templates/kotlin-gradle/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}

0 comments on commit f199be3

Please sign in to comment.