diff options
author | Linnea Gräf <nea@nea.moe> | 2024-02-22 00:30:05 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-02-26 15:37:12 +0100 |
commit | 602112724d8236c1ec6671e1893128862c9f5815 (patch) | |
tree | fd0695839af0b2a8296e8d3009432644212638ce /build.gradle.kts | |
parent | 2e571210c948d90a7d0ea8b07184102ceb401962 (diff) | |
download | firmament-602112724d8236c1ec6671e1893128862c9f5815.tar.gz firmament-602112724d8236c1ec6671e1893128862c9f5815.tar.bz2 firmament-602112724d8236c1ec6671e1893128862c9f5815.zip |
Add custom model predicates
Add regex support
Add and and or predicates
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 7662f06..38c1b9f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,10 @@ -// SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> -// -// SPDX-License-Identifier: CC0-1.0 +/* + * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> + * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> + * + * SPDX-License-Identifier: CC0-1.0 + * SPDX-License-Identifier: GPL-3.0-or-later + */ import moe.nea.licenseextractificator.LicenseDiscoveryTask import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -149,8 +153,14 @@ dependencies { transInclude.resolvedConfiguration.resolvedArtifacts.forEach { include(it.moduleVersion.id.toString()) } + + + testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") } +tasks.test { + useJUnitPlatform() +} version = rootProject.property("mod_version").toString() group = rootProject.property("maven_group").toString() @@ -187,11 +197,6 @@ tasks.jar { tasks.shadowJar { configurations = listOf(shadowMe) archiveClassifier.set("dev") - doLast { - configurations.forEach { - println("Copying files into jar: ${it.files}") - } - } relocate("io.github.moulberry.repo", "moe.nea.firmament.deps.repo") destinationDirectory.set(layout.buildDirectory.dir("badjars")) } @@ -205,10 +210,10 @@ tasks.remapJar { tasks.processResources { val replacements = listOf( - "version" to project.version, + "version" to project.version.toString(), "minecraft_version" to libs.versions.minecraft.get(), "fabric_kotlin_version" to libs.versions.fabric.kotlin.get() - ).map { (k, v) -> k to v.toString() } + ) replacements.forEach { (key, value) -> inputs.property(key, value) } filesMatching("**/fabric.mod.json") { expand(*replacements.toTypedArray()) |