ViaFabric/build.gradle
2018-10-07 08:58:34 -03:00

78 lines
1.8 KiB
Groovy

buildscript {
repositories {
jcenter()
maven { url 'https://www.dimdev.org/maven/' }
maven { url 'https://repo.spongepowered.org/maven/' }
}
dependencies {
classpath 'org.dimdev:ForgeGradle:2.3-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
plugins {
id 'net.minecrell.licenser' version '0.4.1'
}
apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'java'
group 'com.github.creeper123123321.viarift'
version '1.0.1'
archivesBaseName = 'ViaRift'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://libraries.minecraft.net/' }
maven { url 'https://repo.viaversion.com/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://www.dimdev.org/maven/' }
maven { url 'https://jitpack.io' }
}
configurations {
shade
compile.extendsFrom shade
}
dependencies {
shade ('us.myles:viaversion:1.5.1') {
transitive = false
changing = true
}
shade 'org.yaml:snakeyaml:1.18'
compile 'org.dimdev:rift:1.0.4-74'
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep)){
exclude 'META-INF', 'META-INF/**'
exclude 'us/myles/ViaVersion/SpongePlugin.class'
exclude 'javassist/**'
}
}
}
reobf {
jar {
extraLines += "PK: us/myles com/github/creeper123123321/viarift/shaded/us/myles"
}
}
mixin {
defaultObfuscationEnv notch
add sourceSets.main, 'mixins.viarift.refmap.json'
}
minecraft {
version = '1.13'
mappings = 'snapshot_20180904'
runDir = 'run'
tweakClass = 'org.dimdev.riftloader.launch.RiftLoaderClientTweaker'
}