mirror of
https://github.com/irmen/prog8.git
synced 2024-12-28 12:32:34 +00:00
52 lines
1000 B
Groovy
52 lines
1000 B
Groovy
plugins {
|
|
id "java"
|
|
id "org.jetbrains.kotlin.jvm"
|
|
id "io.kotest" version "0.3.8"
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(javaVersion)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.antlr:antlr4-runtime:4.9.2'
|
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.12"
|
|
implementation project(':parser')
|
|
|
|
testImplementation 'io.kotest:kotest-runner-junit5-jvm:4.6.3'
|
|
}
|
|
|
|
configurations.all {
|
|
exclude group: 'com.ibm.icu', module: 'icu4j'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs = ["${project.projectDir}/src"]
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDirs = ["${project.projectDir}/test"]
|
|
}
|
|
resources {
|
|
srcDirs = ["${project.projectDir}/res"]
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
|
|
// Always run tests, even when nothing changed.
|
|
dependsOn 'cleanTest'
|
|
|
|
// Show test results.
|
|
testLogging {
|
|
events "skipped", "failed"
|
|
}
|
|
}
|