2021-02-09 00:06:11 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2021-06-13 16:10:07 +00:00
|
|
|
id "org.jetbrains.kotlin.jvm"
|
2021-02-09 00:06:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
targetCompatibility = 11
|
|
|
|
sourceCompatibility = 11
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2021-06-13 16:10:07 +00:00
|
|
|
implementation 'org.antlr:antlr4-runtime:4.9.2'
|
2021-10-12 19:32:47 +00:00
|
|
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.12"
|
2021-02-09 00:06:11 +00:00
|
|
|
implementation project(':parser')
|
|
|
|
|
2021-06-13 12:59:57 +00:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5"
|
2021-07-20 20:42:27 +00:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
|
|
|
|
testImplementation 'org.hamcrest:hamcrest:2.2'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
|
2021-06-13 16:10:07 +00:00
|
|
|
}
|
2021-06-13 12:59:57 +00:00
|
|
|
|
2021-06-13 16:10:07 +00:00
|
|
|
configurations.all {
|
|
|
|
exclude group: 'com.ibm.icu', module: 'icu4j'
|
2021-02-09 00:06:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "11"
|
2021-02-26 00:10:00 +00:00
|
|
|
useIR = true
|
2021-02-09 00:06:11 +00:00
|
|
|
// verbose = true
|
|
|
|
// freeCompilerArgs += "-XXLanguage:+NewInference"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "11"
|
2021-02-26 00:10:00 +00:00
|
|
|
useIR = true
|
2021-02-09 00:06:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDirs = ["${project.projectDir}/src"]
|
2021-10-12 19:32:47 +00:00
|
|
|
}
|
2021-02-09 00:06:11 +00:00
|
|
|
}
|
|
|
|
test {
|
|
|
|
java {
|
|
|
|
srcDirs = ["${project.projectDir}/test"]
|
|
|
|
}
|
2021-07-10 18:50:07 +00:00
|
|
|
resources {
|
|
|
|
srcDirs = ["${project.projectDir}/res"]
|
|
|
|
}
|
2021-02-09 00:06:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-13 12:59:57 +00:00
|
|
|
test {
|
|
|
|
// Enable JUnit 5 (Gradle 4.6+).
|
|
|
|
useJUnitPlatform()
|
|
|
|
|
|
|
|
// Always run tests, even when nothing changed.
|
|
|
|
dependsOn 'cleanTest'
|
|
|
|
|
|
|
|
// Show test results.
|
|
|
|
testLogging {
|
|
|
|
events "skipped", "failed"
|
|
|
|
}
|
|
|
|
}
|