From 602112724d8236c1ec6671e1893128862c9f5815 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Thu, 22 Feb 2024 00:30:05 +0100 Subject: Add custom model predicates Add regex support Add and and or predicates --- build.gradle.kts | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'build.gradle.kts') 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 -// -// SPDX-License-Identifier: CC0-1.0 +/* + * SPDX-FileCopyrightText: 2023 Linnea Gräf + * SPDX-FileCopyrightText: 2024 Linnea Gräf + * + * 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()) -- cgit