build updates

This commit is contained in:
Jason Penilla 2022-02-28 13:22:30 -07:00 committed by Jason
parent 1c02da5116
commit 33c51967e2
6 changed files with 5 additions and 9 deletions

View file

@ -1,10 +1,8 @@
import ca.stellardrift.build.configurate.ConfigFormats
import ca.stellardrift.build.configurate.catalog.PolyglotVersionCatalogExtension
enableFeaturePreview("VERSION_CATALOGS")
plugins {
id("ca.stellardrift.polyglot-version-catalogs") version "5.0.0"
id("ca.stellardrift.polyglot-version-catalogs") version "5.0.1"
}
extensions.configure<PolyglotVersionCatalogExtension> {

View file

@ -4,11 +4,9 @@ import org.gradle.api.provider.Provider
// set by GitHub Actions
val Project.ci: Provider<Boolean>
get() = providers.environmentVariable("CI")
.forUseAtConfigurationTime()
.map { it.toBoolean() }
.orElse(false)
val Project.compileExamples: Boolean
get() = providers.gradleProperty("compile-examples")
.forUseAtConfigurationTime()
.isPresent

View file

@ -30,7 +30,7 @@ tasks {
dependsOn(shadowJar)
}
runServer {
minecraftVersion("1.18.1")
minecraftVersion("1.18.2")
runDirectory(file("run/latest"))
javaLauncher.set(project.javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(17))
@ -40,7 +40,7 @@ tasks {
// Setup a run task for each supported version
mapOf(
setOf("1.8.8", "1.9.4", "1.10.2", "1.11.2") to 11,
setOf("1.12.2", "1.13.2", "1.14.4", "1.15.2", "1.16.5", "1.17.1", "1.18.1") to 17,
setOf("1.12.2", "1.13.2", "1.14.4", "1.15.2", "1.16.5", "1.17.1", "1.18.2") to 17,
).forEach { (minecraftVersions, javaVersion) ->
for (version in minecraftVersions) {
createVersionedRun(version, javaVersion)

Binary file not shown.

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View file

@ -11,7 +11,7 @@ pluginManagement {
}
plugins {
id("ca.stellardrift.polyglot-version-catalogs") version "5.0.0"
id("ca.stellardrift.polyglot-version-catalogs") version "5.0.1"
}
rootProject.name = "cloud"