58 lines
1.2 KiB
Text
58 lines
1.2 KiB
Text
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
// TODO: Documentation
|
|
// TODO: Source Jar
|
|
// TODO: Doc Jar
|
|
// TODO: Proper Maven publish
|
|
plugins {
|
|
kotlin("jvm")
|
|
`maven-publish`
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
project.version = "0.0.1"
|
|
project.group = "de.pheerai.rcdb"
|
|
|
|
|
|
java {
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
|
|
testImplementation("io.kotest:kotest-runner-junit5-jvm:4.0.5")
|
|
testImplementation("io.kotest:kotest-assertions-core-jvm:4.0.5")
|
|
}
|
|
|
|
tasks {
|
|
withType<KotlinCompile>().configureEach {
|
|
kotlinOptions {
|
|
freeCompilerArgs = listOf("-XXLanguage:+InlineClasses")
|
|
apiVersion = "1.3"
|
|
languageVersion = "1.3"
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
groupId = project.group as String
|
|
artifactId = project.name as String
|
|
version = project.version as String
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
}
|
|
}
|