49 lines
903 B
Groovy
49 lines
903 B
Groovy
plugins {
|
|
id 'fabric-loom' version '1.9-SNAPSHOT'
|
|
}
|
|
|
|
group = 'eu.e99.boringsmp'
|
|
version = '0.0.1'
|
|
|
|
base {
|
|
archivesName = 'boringsmp'
|
|
}
|
|
|
|
repositories {
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", version
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
expand "version": version
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
it.options.release = 21
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
jar {
|
|
from("LICENSE.md") {
|
|
rename { "${it}_boringsmp.md"}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs = ['src']
|
|
main.resources.srcDirs = ['resources']
|
|
}
|