mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-14 05:21:31 +01:00
104 lines
2.4 KiB
Groovy
104 lines
2.4 KiB
Groovy
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'
|
|
|
|
version = "1.8.9"
|
|
group= "net.silentclient"
|
|
archivesBaseName = "client"
|
|
|
|
sourceCompatibility = targetCompatibility = 1.8
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
minecraft {
|
|
version = "1.8.9"
|
|
tweakClass = "net.silentclient.client.mixin.SilentClientTweaker"
|
|
runDir = "run"
|
|
mappings = "stable_22"
|
|
makeObfSourceJar = false
|
|
accessTransformer(rootProject.file("src/main/resources/silentclient_at.cfg"))
|
|
}
|
|
|
|
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')
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
}
|
|
|
|
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,
|
|
"Manifest-Version": 1.0
|
|
)
|
|
|
|
configurations.embed.each { dep ->
|
|
from(project.zipTree(dep)) {
|
|
exclude 'META-INF', 'META-INF/**'
|
|
}
|
|
}
|
|
} |