donatepay-integration/build.gradle
BitHeaven 5baaba43d2
Some checks failed
build / build (21) (push) Failing after 5m47s
Edit gradle
2025-01-27 10:20:31 +05:00

84 lines
2.2 KiB
Groovy

plugins {
alias libs.plugins.fabric.loom
alias libs.plugins.compression
id 'maven-publish'
}
base {
archivesName = project.archives_base_name
}
String buildNumber = System.getenv("RUN_NUMBER")
version = "${mod_version}+${libs.versions.minecraft.get()}" + (buildNumber != null ? "-${buildNumber}" : "")
group = project.maven_group
loom {
splitEnvironmentSourceSets()
mods {
"donpayinteg" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
configurations {
includedJars
}
dependencies {
// To change the versions see the gradle.properties file
minecraft libs.minecraft
mappings variantOf(libs.yarn.mappings) { classifier 'v2' }
modImplementation libs.fabric.loader
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation libs.fabric.version
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.3'
includedJars group: 'org.yaml', name: 'snakeyaml', version: '2.3'
implementation group: 'org.json', name: 'json', version: '20240303'
includedJars group: 'org.json', name: 'json', version: '20240303'
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 21
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
// withSourcesJar()
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
from {
configurations.includedJars.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}