2018-02-09 20:50:22 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-02-10 02:19:01 +00:00
|
|
|
jcenter()
|
2018-02-09 20:50:22 +00:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2018-08-16 21:52:11 +00:00
|
|
|
classpath group: "org.jetbrains.kotlin", name: "kotlin-gradle-plugin", version: kotlinVersion
|
|
|
|
classpath group: "com.github.jengelman.gradle.plugins", name: "shadow", version: shadowVersion
|
|
|
|
classpath group: 'com.vanniktech', name: 'gradle-dependency-graph-generator-plugin', version: '0.5.0'
|
2018-02-09 20:50:22 +00:00
|
|
|
}
|
|
|
|
}
|
2018-05-09 22:56:28 +00:00
|
|
|
|
2018-02-09 20:50:22 +00:00
|
|
|
apply plugin: 'kotlin'
|
2018-06-22 09:58:51 +00:00
|
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
2018-08-16 21:52:11 +00:00
|
|
|
apply plugin: "com.vanniktech.dependency.graph.generator"
|
2018-02-09 20:50:22 +00:00
|
|
|
|
|
|
|
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
|
|
|
|
|
|
|
dependencies {
|
2018-06-22 09:58:51 +00:00
|
|
|
compile project(":Jankson")
|
2018-08-16 21:52:11 +00:00
|
|
|
shadow (project(':Jankson')) { transitive = false }
|
2018-06-22 09:58:51 +00:00
|
|
|
|
2018-08-16 21:52:11 +00:00
|
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '+'
|
2018-07-08 00:02:38 +00:00
|
|
|
compile group: 'com.google.guava', name: 'guava', version: '+'
|
2018-02-24 23:51:56 +00:00
|
|
|
|
2018-08-16 21:52:11 +00:00
|
|
|
compile group: 'com.github.kittinunf.fuel', name: 'fuel', version: fuelVersion
|
|
|
|
shadow (group: 'com.github.kittinunf.fuel', name: 'fuel', version: fuelVersion) { transitive = false }
|
|
|
|
compile group: 'com.github.kittinunf.result', name: 'result', version: resultVersion
|
|
|
|
shadow (group: 'com.github.kittinunf.result', name: 'result', version: resultVersion) { transitive = false }
|
2018-08-14 19:53:01 +00:00
|
|
|
|
2018-08-16 21:52:11 +00:00
|
|
|
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
|
2018-02-09 20:50:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
2018-05-09 22:56:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
2018-08-14 19:53:01 +00:00
|
|
|
classifier = ''
|
2018-05-09 22:56:28 +00:00
|
|
|
|
2018-08-14 19:53:01 +00:00
|
|
|
relocate 'blue.endless', 'matterlink.repack.blue.endless'
|
2018-08-16 21:52:11 +00:00
|
|
|
relocate 'com.github', 'matterlink.repack.com.github'
|
|
|
|
configurations = [project.configurations.shadow]
|
|
|
|
}
|
|
|
|
|
|
|
|
//tasks.build.dependsOn shadowJar
|