MatterLink/core/build.gradle

48 lines
1.7 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
2018-02-10 02:19:01 +00:00
jcenter()
mavenCentral()
}
dependencies {
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-05-09 22:56:28 +00:00
apply plugin: 'kotlin'
2018-06-22 09:58:51 +00:00
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "com.vanniktech.dependency.graph.generator"
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
dependencies {
2018-06-22 09:58:51 +00:00
compile project(":Jankson")
shadow (project(':Jankson')) { transitive = false }
2018-06-22 09:58:51 +00:00
compile group: 'com.google.code.gson', name: 'gson', version: '+'
compile group: 'com.google.guava', name: 'guava', version: '+'
2018-02-24 23:51:56 +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
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
}
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'
relocate 'com.github', 'matterlink.repack.com.github'
configurations = [project.configurations.shadow]
}
//tasks.build.dependsOn shadowJar