chipmunkmod/build.gradle

61 lines
1.6 KiB
Groovy
Raw Permalink Normal View History

2018-11-03 23:22:32 +01:00
plugins {
2026-03-29 12:28:25 -03:00
id 'net.fabricmc.fabric-loom' version "${loom_version}"
2018-11-03 23:22:32 +01:00
}
base.archivesName = project.archives_base_name
version = project.mod_version
2019-02-15 22:25:50 +01:00
group = project.maven_group
2018-11-03 23:22:32 +01:00
repositories {
mavenCentral()
2025-07-06 16:06:49 -03:00
// adventure snapshots
maven {
2026-03-29 12:28:25 -03:00
url = "https://central.sonatype.com/repository/maven-snapshots/"
mavenContent { snapshotsOnly() }
}
}
2018-11-06 10:51:23 +01:00
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
2026-03-29 12:28:25 -03:00
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API
2026-03-29 12:28:25 -03:00
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// LuaJ
include(implementation("org.luaj:luaj-jse:3.0.1"))
// Configurate
include(implementation("org.spongepowered:configurate-core:4.2.0"))
include(implementation("org.spongepowered:configurate-gson:4.2.0"))
include(implementation("io.leangen.geantyref:geantyref:2.0.1"))
// Adventure
2026-03-29 12:28:25 -03:00
include(implementation("net.kyori:adventure-platform-fabric:6.9.0-SNAPSHOT"))
include(implementation("net.kyori:adventure-text-serializer-gson:4.26.1"))
include(implementation("net.kyori:adventure-text-serializer-legacy:4.26.1"))
2018-11-03 23:22:32 +01:00
}
2018-12-22 17:37:14 +01:00
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
2026-03-29 12:28:25 -03:00
it.options.release = 25
2024-12-27 23:25:46 -03:00
2026-03-29 12:28:25 -03:00
sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25
2019-02-15 21:55:33 +01:00
}
jar {
from("LICENSE") {
rename { "${it}_${base.archivesName}" }
}
}