mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 22:33:12 +00:00
67 lines
1.1 KiB
Groovy
67 lines
1.1 KiB
Groovy
|
|
||
|
plugins {
|
||
|
id 'java'
|
||
|
id 'application'
|
||
|
id "org.jetbrains.kotlin.jvm"
|
||
|
}
|
||
|
|
||
|
targetCompatibility = 11
|
||
|
sourceCompatibility = 11
|
||
|
|
||
|
repositories {
|
||
|
mavenLocal()
|
||
|
mavenCentral()
|
||
|
maven { url "https://kotlin.bintray.com/kotlinx" }
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation project(':compilerAst')
|
||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||
|
|
||
|
}
|
||
|
|
||
|
compileKotlin {
|
||
|
kotlinOptions {
|
||
|
jvmTarget = "11"
|
||
|
// verbose = true
|
||
|
// freeCompilerArgs += "-XXLanguage:+NewInference"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
compileTestKotlin {
|
||
|
kotlinOptions {
|
||
|
jvmTarget = "11"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
main {
|
||
|
java {
|
||
|
srcDirs = ["${project.projectDir}/src"]
|
||
|
}
|
||
|
resources {
|
||
|
srcDirs = ["${project.projectDir}/res"]
|
||
|
}
|
||
|
}
|
||
|
test {
|
||
|
java {
|
||
|
srcDirs = ["${project.projectDir}/test"]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
test {
|
||
|
// Enable JUnit 5 (Gradle 4.6+).
|
||
|
useJUnitPlatform()
|
||
|
|
||
|
// Always run tests, even when nothing changed.
|
||
|
dependsOn 'cleanTest'
|
||
|
|
||
|
// Show test results.
|
||
|
testLogging {
|
||
|
events "skipped", "failed"
|
||
|
}
|
||
|
}
|