MatterLink/core/build.gradle

57 lines
2.3 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
2018-11-17 13:57:36 +00:00
compile(group: "com.github.NikkyAi.Fuel", name: "fuel", version: "742c73082e")
shadow(group: "com.github.NikkyAi.Fuel", name: "fuel", version: "742c73082e") { transitive = false }
compile(group: "com.github.NikkyAi.Fuel", name: "fuel-coroutines", version: "742c73082e")
shadow(group: "com.github.NikkyAi.Fuel", name: "fuel-coroutines", version: "742c73082e") { 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-11-18 01:04:19 +00:00
compile(group: "org.jetbrains.kotlinx", name: "kotlinx-coroutines-core", version: "1.0.1")
shadow(group: "org.jetbrains.kotlinx", name: "kotlinx-coroutines-core", version: "1.0.1") { transitive = false }
compile(group: "org.jetbrains.kotlinx", name: "kotlinx-serialization-runtime", version: "0.9.0")
shadow(group: "org.jetbrains.kotlinx", name: "kotlinx-serialization-runtime", version: "0.9.0") { 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'
relocate 'kotlinx', 'matterlink.repack.kotlinx'
configurations = [project.configurations.shadow]
}
//tasks.build.dependsOn shadowJar