forked from TAPAAL/tapaal-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (61 loc) · 1.93 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.6.10'
id "ca.coglinc.javacc" version "2.4.0"
}
group 'net.tapaal'
version '4.0-SNAPSHOT'
var targetJavaVersion = JavaVersion.VERSION_11
var targetKotlinVersion = "1.6"
java {
sourceCompatibility = targetJavaVersion
targetCompatibility = targetJavaVersion
}
compileKotlin {
dependsOn compileJavacc
sourceCompatibility = targetJavaVersion
targetCompatibility = targetJavaVersion
kotlinOptions {
jvmTarget = targetJavaVersion
apiVersion = targetKotlinVersion
languageVersion = targetKotlinVersion
}
}
mainClassName = 'TAPAAL'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir compileJavacc.outputDirectory
}
}
}
jar {
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF'
//Sets the main call for the Jar, you can double click to run the jar file
manifest {
attributes (
'Main-Class': mainClassName
)
}
//The following lines makes libs a part of the build jar file (standalone jar)
//duplicatesStrategy = DuplicatesStrategy.EXCLUDE
//from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
dependencies {
implementation 'commons-cli:commons-cli:1.5.0'
implementation 'org.swinglabs.swingx:swingx-all:1.6.5-1'
implementation 'net.java.dev.jna:jna:5.11.0'
implementation 'org.jetbrains:annotations:23.0.0'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3'
implementation 'org.jfree:jfreechart:1.5.5'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
}