2018-07-06 04:49:19 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
maven { url 'https://www.dimdev.org/maven/' }
|
2018-08-21 20:14:42 +02:00
|
|
|
maven { url 'https://repo.spongepowered.org/maven/' }
|
2018-07-06 04:49:19 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'org.dimdev:ForgeGradle:2.3-SNAPSHOT'
|
|
|
|
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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/' }
|
2018-08-22 19:23:09 +02:00
|
|
|
maven { url 'https://repo.viaversion.com/' }
|
2018-08-21 20:14:42 +02:00
|
|
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
|
2018-07-06 04:49:19 +02:00
|
|
|
maven { url 'https://www.dimdev.org/maven/' }
|
2018-08-21 20:14:42 +02:00
|
|
|
maven { url 'https://jitpack.io' }
|
2018-07-06 04:49:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
shade
|
|
|
|
compile.extendsFrom shade
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-08-22 19:23:09 +02:00
|
|
|
shade ('us.myles:viaversion:1.5.1-SNAPSHOT') {
|
2018-08-21 20:14:42 +02:00
|
|
|
transitive = false
|
|
|
|
changing = true
|
|
|
|
}
|
|
|
|
shade 'org.yaml:snakeyaml:1.18'
|
2018-07-06 04:49:19 +02:00
|
|
|
implementation 'org.dimdev:mixin:0.7.11-SNAPSHOT'
|
|
|
|
compile 'org.dimdev.rift:Rift:1.0.1:dev'
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
configurations.shade.each { dep ->
|
|
|
|
from(project.zipTree(dep)){
|
|
|
|
exclude 'META-INF', 'META-INF/**'
|
|
|
|
exclude 'us/myles/ViaVersion/SpongePlugin.class'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
2018-08-18 14:39:54 +02:00
|
|
|
mappings = 'snapshot_5'
|
2018-07-06 04:49:19 +02:00
|
|
|
runDir = 'run'
|
|
|
|
tweakClass = 'org.dimdev.riftloader.launch.RiftLoaderTweaker'
|
|
|
|
}
|