SLC-1.8.9/build.gradle

104 lines
2.4 KiB
Groovy
Raw Normal View History

2023-06-27 17:59:21 +02:00
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'java'
2023-06-28 19:06:07 +02:00
version = "1.8.9"
group= "net.silentclient"
2023-06-27 17:59:21 +02:00
archivesBaseName = "client"
sourceCompatibility = targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
minecraft {
version = "1.8.9"
tweakClass = "net.silentclient.client.mixin.SilentClientTweaker"
runDir = "run"
2023-06-28 17:34:13 +02:00
mappings = "stable_22"
2023-06-27 17:59:21 +02:00
makeObfSourceJar = false
2023-07-01 20:29:36 +02:00
accessTransformer(rootProject.file("src/main/resources/silentclient_at.cfg"))
2023-06-27 17:59:21 +02:00
}
repositories {
maven { url "https://jitpack.io" }
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven/'
}
mavenCentral()
jcenter()
}
configurations {
embed
compile.extendsFrom(embed)
}
dependencies {
embed('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
exclude module: 'launchwrapper'
exclude module: 'guava'
exclude module: 'gson'
exclude module: 'commons-io'
}
compile('org.spongepowered:mixin:0.7.11-SNAPSHOT')
2023-07-21 21:19:19 +02:00
compile fileTree(dir: 'libs', include: ['*.jar'])
2023-06-27 17:59:21 +02:00
}
mixin {
defaultObfuscationEnv notch
add sourceSets.main, "mixins.SilentClient.refmap.json"
}
processResources {
inputs.files "src/main/resources"
outputs.dir "build/classes/main"
copy {
from("src/main/resources")
into("build/classes/main")
}
}
jar {
dependsOn configurations.compile
from {
configurations.embed.collect {
it.isDirectory() ? it : zipTree(it)
}
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
jar {
manifest.attributes(
"MixinConfigs": 'mixins.SilentClient.json',
"TweakClass": "net.silentclient.client.mixin.SilentClientTweaker",
"TweakOrder": 0,
2024-05-09 10:42:41 +02:00
"Manifest-Version": 1.0
2023-06-27 17:59:21 +02:00
)
configurations.embed.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF', 'META-INF/**'
}
}
}