2019-12-15 05:04:52 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
maven {
|
|
|
|
name = 'forge'
|
|
|
|
url = 'http://files.minecraftforge.net/maven'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = 'SpongePowered'
|
|
|
|
url = 'http://repo.spongepowered.org/maven'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
2020-03-04 14:39:30 +00:00
|
|
|
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
|
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3'
|
2020-07-15 14:23:19 +00:00
|
|
|
classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: "${kotlin_version}"
|
|
|
|
}
|
2019-12-15 05:04:52 +00:00
|
|
|
}
|
|
|
|
|
2020-04-22 14:52:54 +00:00
|
|
|
apply plugin: 'kotlin'
|
2020-04-23 16:37:03 +00:00
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
2019-12-15 05:04:52 +00:00
|
|
|
apply plugin: 'org.spongepowered.mixin'
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
|
|
|
|
version project.modVersion
|
2020-08-14 03:53:25 +00:00
|
|
|
group project.modGroup
|
2019-12-15 05:04:52 +00:00
|
|
|
|
2020-11-17 19:14:03 +00:00
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/cape-api'
|
|
|
|
main.java.srcDirs += 'src/main/commons'
|
|
|
|
}
|
|
|
|
|
2020-04-23 16:37:03 +00:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-15 05:04:52 +00:00
|
|
|
sourceCompatibility = targetCompatibility = '1.8'
|
|
|
|
compileJava {
|
|
|
|
sourceCompatibility = targetCompatibility = '1.8'
|
|
|
|
}
|
|
|
|
|
|
|
|
minecraft {
|
|
|
|
version = project.forgeVersion
|
|
|
|
runDir = 'run'
|
|
|
|
mappings = project.mcpVersion
|
|
|
|
coreMod = 'me.zeroeightsix.kami.mixin.MixinLoaderForge'
|
|
|
|
makeObfSourceJar = false
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = 'spongepowered-repo'
|
|
|
|
url = 'http://repo.spongepowered.org/maven/'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = 'impactdevelopment-repo'
|
|
|
|
url = 'https://impactdevelopment.github.io/maven/'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = 'swt-repo'
|
|
|
|
url = "http://maven-eclipse.github.io/maven"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "jitpack.io"
|
|
|
|
url = "https://jitpack.io"
|
|
|
|
}
|
|
|
|
mavenCentral()
|
2020-03-04 14:39:30 +00:00
|
|
|
jcenter()
|
2019-12-15 05:04:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-05-20 15:47:37 +00:00
|
|
|
compile("org.spongepowered:mixin:0.7.11-SNAPSHOT") { // do NOT update this to 8.0 or above, it breaks compatibility with future client
|
2019-12-15 05:04:52 +00:00
|
|
|
exclude module: 'launchwrapper'
|
|
|
|
exclude module: 'guava'
|
|
|
|
exclude module: 'gson'
|
|
|
|
exclude module: 'commons-io'
|
2020-05-20 15:50:43 +00:00
|
|
|
exclude module: 'log4j-core' // we want to exclude this as well because 0.7.11 includes it too new for MC
|
2019-12-15 05:04:52 +00:00
|
|
|
}
|
2020-08-14 03:53:25 +00:00
|
|
|
|
2020-03-04 14:39:30 +00:00
|
|
|
compile(group: 'org.reflections', name: 'reflections', version: '0.9.12') {
|
2019-12-15 05:04:52 +00:00
|
|
|
exclude group: 'com.google.guava', module: 'guava'
|
|
|
|
}
|
2020-08-14 03:53:25 +00:00
|
|
|
|
2020-04-08 22:49:22 +00:00
|
|
|
compile 'club.minnced:java-discord-rpc:2.0.2'
|
2020-10-26 19:59:55 +00:00
|
|
|
compile 'com.github.kevinsawicki:http-request:http-request-6.0'
|
2020-03-27 00:59:51 +00:00
|
|
|
compile 'com.github.MrPowerGamerBR:TemmieWebhook:-SNAPSHOT'
|
2020-08-14 03:53:25 +00:00
|
|
|
|
2020-05-20 15:03:14 +00:00
|
|
|
compile 'com.github.cabaletta:baritone:1.2.14'
|
|
|
|
compile 'cabaletta:baritone-api:1.2'
|
2020-08-14 03:53:25 +00:00
|
|
|
|
2020-04-24 15:27:36 +00:00
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib", version: kotlin_version
|
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk7", version: kotlin_version
|
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: kotlin_version
|
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: kotlin_version
|
2020-08-14 03:53:25 +00:00
|
|
|
|
|
|
|
compile group: "org.jetbrains", name: "annotations", version: annotations_version
|
2019-12-15 05:04:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
inputs.property 'version', project.version
|
|
|
|
inputs.property 'mcversion', project.minecraft.version
|
2020-08-14 03:53:25 +00:00
|
|
|
|
2020-08-03 02:20:55 +00:00
|
|
|
exclude '**/rawimagefiles'
|
2019-12-15 05:04:52 +00:00
|
|
|
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
include 'mcmod.info'
|
|
|
|
|
|
|
|
expand 'version': project.version, 'mcversion': project.minecraft.version
|
|
|
|
}
|
|
|
|
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
|
|
|
|
|
|
|
rename '(.+_at.cfg)', 'META-INF/$1'
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
2020-10-09 02:13:55 +00:00
|
|
|
include(dependency('cabaletta:baritone-api'))
|
2020-01-23 16:50:33 +00:00
|
|
|
include(dependency('club.minnced:java-discord-rpc'))
|
2020-10-26 19:59:55 +00:00
|
|
|
include(dependency('com.github.kevinsawicki:http-request'))
|
2020-03-27 00:59:51 +00:00
|
|
|
include(dependency('com.github.MrPowerGamerBR:TemmieWebhook'))
|
2020-10-09 02:13:55 +00:00
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}"))
|
2020-04-24 15:27:36 +00:00
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"))
|
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlin_version}"))
|
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}"))
|
2020-10-09 02:13:55 +00:00
|
|
|
include(dependency('org.javassist:javassist'))
|
|
|
|
include(dependency('org.reflections:reflections'))
|
|
|
|
include(dependency('org.spongepowered:mixin'))
|
2019-12-15 05:04:52 +00:00
|
|
|
}
|
2020-08-14 03:53:25 +00:00
|
|
|
|
2020-01-23 16:50:33 +00:00
|
|
|
exclude 'dummyThing' // can someone explain why this is here
|
2019-12-15 05:04:52 +00:00
|
|
|
classifier = 'release'
|
|
|
|
}
|
|
|
|
|
|
|
|
mixin {
|
|
|
|
defaultObfuscationEnv searge
|
|
|
|
add sourceSets.main, 'mixins.kami.refmap.json'
|
|
|
|
}
|
|
|
|
|
|
|
|
reobf {
|
|
|
|
shadowJar {
|
|
|
|
mappingType = 'SEARGE'
|
|
|
|
classpath = sourceSets.main.compileClasspath
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-20 15:03:14 +00:00
|
|
|
// Don't put baritone mixin here please c:
|
2019-12-15 05:04:52 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
2020-05-20 15:03:14 +00:00
|
|
|
'MixinConfigs': 'mixins.kami.json',
|
2019-12-15 05:04:52 +00:00
|
|
|
'tweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
|
|
|
|
'TweakOrder': 0,
|
|
|
|
'FMLCorePluginContainsFMLMod': 'true',
|
|
|
|
'FMLCorePlugin': 'me.zeroeightsix.kami.mixin.MixinLoaderForge',
|
|
|
|
'ForceLoadAsMod': 'true',
|
|
|
|
'FMLAT': 'kami_at.cfg'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-15 14:23:19 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Main-Class': 'me.zeroeightsix.installer.Installer'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2020-08-14 03:53:25 +00:00
|
|
|
|
|
|
|
build.dependsOn(shadowJar)
|