aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle34
1 files changed, 32 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index e12cda7..600a966 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,14 +16,44 @@ jar {
)
}
+tasks.withType(JavaCompile) {
+ options.encoding = 'UTF-8'
+}
+
+compileTestJava {
+ moduleOptions {
+ addModules = [
+ 'org.junit.jupiter.api'
+ ]
+ addReads = [
+ 'org.glavo.javah': 'org.junit.jupiter.api'
+ ]
+ }
+}
+
+test {
+ testLogging.showStandardStreams = true
+ useJUnitPlatform()
+ moduleOptions {
+ runOnClasspath = true
+ }
+}
+
repositories {
mavenCentral()
}
dependencies {
+ // https://mvnrepository.com/artifact/commons-cli/commons-cli
+ implementation group: 'info.picocli', name: 'picocli', version: '4.1.1'
+
// https://mvnrepository.com/artifact/org.ow2.asm/asm
- compile group: 'org.ow2.asm', name: 'asm', version: '7.2'
+ implementation group: 'org.ow2.asm', name: 'asm', version: '7.2'
- testCompile group: 'junit', name: 'junit', version: '4.12'
+ testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.5.2'
}
+task copyDependencies(type: Copy) {
+ from configurations.default
+ into 'build/libs'
+}