From 69afa208fb3a2321ca48c192f2891fbc415ed45a Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Fri, 4 Oct 2019 14:13:00 +0200 Subject: [PATCH] Add project --- rhubarb/build.gradle.kts | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 rhubarb/build.gradle.kts diff --git a/rhubarb/build.gradle.kts b/rhubarb/build.gradle.kts new file mode 100644 index 0000000..cc75424 --- /dev/null +++ b/rhubarb/build.gradle.kts @@ -0,0 +1,51 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + +plugins { + kotlin("jvm") version "1.3.41" +} + +repositories { + mavenCentral() + jcenter() +} + +dependencies { + implementation(kotlin("stdlib-jdk8")) + implementation("com.beust:klaxon:5.0.1") + implementation("org.apache.commons:commons-lang3:3.9") + implementation("no.tornado:tornadofx:1.7.19") + testImplementation("org.junit.jupiter:junit-jupiter:5.5.0") + testCompile("org.assertj:assertj-core:3.11.1") +} + +val distsDirName = convention.getPlugin(BasePluginConvention::class).distsDirName +var distDirectory = File(project.buildDir, distsDirName) + +tasks { + withType { + kotlinOptions.jvmTarget = "1.8" + } + + test { + useJUnitPlatform() + } + + val copyDoc by creating(Copy::class) { + from("README.adoc") + into(distDirectory) + } + + assemble { + dependsOn(copyDoc) + } + + jar { + destinationDirectory.set(distDirectory) + + manifest { + attributes("Main-Class" to "com.rhubarb_lip_sync.rhubarb_for_spine.MainKt") + } + + from(configurations.compileClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) + } +}