You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bta-example-mod/build.gradle

126 lines
3.7 KiB
Groovy

2 years ago
plugins {
5 months ago
id 'babric-loom' version '1.4.+'
id 'java'
2 years ago
}
group = project.mod_group
archivesBaseName = project.mod_name
version = project.mod_version
loom {
5 months ago
gluedMinecraftJar()
noIntermediateMappings()
customMinecraftManifest.set("https://github.com/Turnip-Labs/bta-manifest-repo/releases/download/v${project.bta_version}/${project.bta_version}.json")
2 years ago
}
repositories {
5 months ago
mavenCentral()
maven { url = "https://jitpack.io" }
maven {
name = 'Babric'
url = 'https://maven.glass-launcher.net/babric'
}
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
ivy {
url = "https://github.com/Better-than-Adventure"
patternLayout {
artifact "[organisation]/releases/download/v[revision]/[module].jar"
m2compatible = true
}
metadataSources { artifact() }
}
ivy {
url = "https://github.com/Turnip-Labs"
patternLayout {
artifact "[organisation]/releases/download/v[revision]/[module]-[revision].jar"
m2compatible = true
}
metadataSources { artifact() }
}
ivy {
url = "https://github.com/Turnip-Labs"
patternLayout {
artifact "[organisation]/releases/download/[revision]/[module]-[revision].jar"
m2compatible = true
}
metadataSources { artifact() }
}
ivy {
url = "https://github.com/Turnip-Labs"
patternLayout {
artifact "[organisation]/releases/download/[revision]/[module]-bta-[revision].jar"
m2compatible = true
}
metadataSources { artifact() }
}
ivy {
url = "https://piston-data.mojang.com"
patternLayout {
artifact "v1/[organisation]/[revision]/[module].jar"
m2compatible = true
}
metadataSources { artifact() }
}
ivy {
url = "https://github.com/MartinSVK12"
patternLayout {
artifact "[organisation]/releases/download/[revision]/[module]-[revision].jar"
m2compatible = true
}
metadataSources { artifact() }
}
2 years ago
}
dependencies {
5 months ago
minecraft "bta-download-repo:bta:${project.bta_version}"
mappings loom.layered() {}
2 years ago
5 months ago
modRuntimeOnly "objects:client:43db9b498cb67058d2e12d394e6507722e71bb45" // https://piston-data.mojang.com/v1/objects/43db9b498cb67058d2e12d394e6507722e71bb45/client.jar
modImplementation "fabric-loader:fabric-loader:${project.loader_version}"
5 months ago
// Helper library
// If you do not need Halplibe you can comment this line out or delete this line
modImplementation "com.github.Turnip-Labs:bta-halplibe:${project.halplibe_version}"
2 years ago
5 months ago
modImplementation "ModMenu:ModMenu:${project.mod_menu_version}"
5 months ago
implementation "org.slf4j:slf4j-api:1.8.0-beta4"
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"
5 months ago
implementation 'com.google.guava:guava:33.0.0-jre'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
var log4jVersion = "2.20.0"
implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}")
5 months ago
include(implementation("org.apache.commons:commons-lang3:3.12.0"))
2 years ago
}
java {
5 months ago
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
2 years ago
}
tasks.withType(JavaCompile).configureEach {
5 months ago
options.release.set 8
2 years ago
}
jar {
5 months ago
from("LICENSE") {
rename { "${it}_${archivesBaseName}" }
}
2 years ago
}
processResources {
5 months ago
inputs.property "version", version
2 years ago
5 months ago
filesMatching("fabric.mod.json") {
expand "version": version
}
2 years ago
}