Add empty rhubarb project

This commit is contained in:
Daniel Wolf 2019-11-04 20:22:37 +01:00
parent 7c49f76efe
commit 37d6f667ff
4 changed files with 62 additions and 0 deletions

59
rhubarb/build.gradle.kts Normal file
View File

@ -0,0 +1,59 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.50"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.apache.commons:commons-lang3:3.9")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2")
// Unit testing
val spekVersion = "2.0.8"
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")
testCompile("org.assertj:assertj-core:3.11.1")
}
val distsDirName = convention.getPlugin(BasePluginConvention::class).distsDirName
var distDirectory = File(project.buildDir, distsDirName)
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
// kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.ExperimentalUnsignedTypes"
kotlinOptions.freeCompilerArgs += "-Xinline-classes"
}
test {
useJUnitPlatform {
includeEngines("spek2")
}
}
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) })
}
}

View File

@ -0,0 +1 @@
package com.rhubarb_lip_sync

View File

@ -0,0 +1 @@
package com.rhubarb_lip_sync

View File

@ -1,5 +1,6 @@
rootProject.name = "rhubarb-lip-sync" rootProject.name = "rhubarb-lip-sync"
include("rhubarb")
include("rhubarb-for-after-effects") include("rhubarb-for-after-effects")
include("rhubarb-for-spine") include("rhubarb-for-spine")
include("rhubarb-for-vegas") include("rhubarb-for-vegas")