Skip to content

Commit

Permalink
update test toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 27, 2024
1 parent 31590e3 commit a249eea
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ tasks.build {

tasks.test {
javaLauncher = javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(8))
}

useJUnitPlatform()
Expand Down
6 changes: 6 additions & 0 deletions testing/1.17.1-Forge-Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ base {
archivesName = "UniminedExampleMod"
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

// this is just here so we can test the outputs easier and clean between tests
unimined.useGlobalCache = false

Expand Down
4 changes: 4 additions & 0 deletions testing/1.17.1-Forge-Fabric/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

// so we can use the unimined directly provided by the super project
includeBuild('../../')

Expand Down
6 changes: 6 additions & 0 deletions testing/1.20.1-NeoForged-Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ base {
archivesName = "UniminedExampleMod"
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

// this is just here so we can test the outputs easier and clean between tests
unimined.useGlobalCache = false

Expand Down
4 changes: 4 additions & 0 deletions testing/1.20.1-NeoForged-Fabric/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

// so we can use the unimined directly provided by the super project
includeBuild('../../')

Expand Down
6 changes: 6 additions & 0 deletions testing/1.20.2-NeoForged-Forge-Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ base {
archivesName = "UniminedExampleMod"
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

// this is just here so we can test the outputs easier and clean between tests
unimined.useGlobalCache = false

Expand Down
4 changes: 4 additions & 0 deletions testing/1.20.2-NeoForged-Forge-Fabric/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

// so we can use the unimined directly provided by the super project
includeBuild('../../')

Expand Down
16 changes: 10 additions & 6 deletions testing/1.20.4-FlintLoader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ base {
archivesName = "UniminedExampleMod"
}

java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

// this is just here so we can test the outputs easier and clean between tests
unimined.useGlobalCache = false

Expand Down Expand Up @@ -39,10 +49,4 @@ processResources {
filesMatching("flintmodule.json") {
expand "version": project.version
}
}

java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
4 changes: 4 additions & 0 deletions testing/1.20.4-FlintLoader/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

// so we can use the unimined directly provided by the super project
includeBuild('../../')

Expand Down
6 changes: 6 additions & 0 deletions testing/1.20.4-NeoForged-Forge-Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ base {
archivesName = "UniminedExampleMod"
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

// this is just here so we can test the outputs easier and clean between tests
unimined.useGlobalCache = false

Expand Down
4 changes: 4 additions & 0 deletions testing/1.20.4-NeoForged-Forge-Fabric/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

// so we can use the unimined directly provided by the super project
includeBuild('../../')

Expand Down
6 changes: 6 additions & 0 deletions testing/1.20.6-NeoForged-Forge-Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ base {
archivesName = "UniminedExampleMod"
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

// this is just here so we can test the outputs easier and clean between tests
unimined.useGlobalCache = false

Expand Down
4 changes: 4 additions & 0 deletions testing/1.20.6-NeoForged-Forge-Fabric/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

// so we can use the unimined directly provided by the super project
includeBuild('../../')

Expand Down
4 changes: 4 additions & 0 deletions testing/1.21-NeoForged-Fabric/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

// so we can use the unimined directly provided by the super project
includeBuild('../../')

Expand Down

0 comments on commit a249eea

Please sign in to comment.