mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:11:31 +01:00
102 lines
2.3 KiB
Groovy
102 lines
2.3 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.0"
|
||
|
group= "net.silentclient" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||
|
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_20"
|
||
|
makeObfSourceJar = false
|
||
|
}
|
||
|
|
||
|
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')
|
||
|
}
|
||
|
|
||
|
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/**'
|
||
|
}
|
||
|
}
|
||
|
}
|