Update Lorenz to 0.5.8 (#101)
This commit is contained in:
parent
00e63c1716
commit
d76e04dae4
4 changed files with 13 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
# noinspection EditorConfigKeyCorrectness
|
||||
[*.{kt,kts}]
|
||||
max_line_length = 150
|
||||
kotlin_imports_layout = ascii
|
||||
ij_kotlin_imports_layout = ascii
|
||||
no-wildcard-imports = no-wildcard-imports
|
||||
ij_continuation_indent_size = 4
|
||||
ij_kotlin_packages_to_use_import_on_demand = io.papermc.paperweight.util.**, io.papermc.paperweight.tasks.*, org.gradle.kotlin.dsl.*, kotlin.io.path.*
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
group = io.papermc.paperweight
|
||||
version = 1.1.13-SNAPSHOT
|
||||
|
||||
org.gradle.caching = true
|
||||
org.gradle.parallel = true
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[versions]
|
||||
asm = "9.1"
|
||||
lorenz = "0.5.7"
|
||||
lorenz = "0.5.8"
|
||||
hypo = "1.2.1"
|
||||
|
||||
[libraries]
|
||||
|
@ -29,8 +29,8 @@ jbsdiff = "io.sigpipe:jbsdiff:1.0"
|
|||
|
||||
# Gradle
|
||||
gradle-licenser = "org.cadixdev.licenser:org.cadixdev.licenser.gradle.plugin:0.6.1"
|
||||
gradle-shadow = "com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:7.0.0"
|
||||
gradle-ktlint = "org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:10.0.0"
|
||||
gradle-shadow = "com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:7.1.0"
|
||||
gradle-ktlint = "org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:10.2.0"
|
||||
gradle-kotlin-dsl = "org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.1.6"
|
||||
gradle-plugin-kotlin = { module = "org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin" }
|
||||
|
||||
|
|
|
@ -263,13 +263,12 @@ fun toHex(hash: ByteArray): String {
|
|||
}
|
||||
|
||||
fun JavaToolchainService.defaultJavaLauncher(project: Project): Provider<JavaLauncher> {
|
||||
return launcherFor(project.extensions.getByType<JavaPluginExtension>().toolchain)
|
||||
.orElse(
|
||||
launcherFor {
|
||||
// If the java plugin isn't applied, or no toolchain value was set
|
||||
languageVersion.set(JavaLanguageVersion.of(16))
|
||||
}
|
||||
)
|
||||
return launcherFor(project.extensions.getByType<JavaPluginExtension>().toolchain).orElse(
|
||||
launcherFor {
|
||||
// If the java plugin isn't applied, or no toolchain value was set
|
||||
languageVersion.set(JavaLanguageVersion.of(16))
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun <P : Property<*>> P.withDisallowChanges(): P = apply { disallowChanges() }
|
||||
|
|
Loading…
Reference in a new issue