This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (72 loc) · 2.17 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
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.0'
id 'de.fntsoftware.gradle.markdown-to-pdf' version '1.0.1'
}
apply plugin: 'kotlin'
apply plugin: 'application'
group 'com.teamscale'
version '1.0.2'
repositories {
mavenCentral()
}
ext {
junitVersion = "5.0.0"
junitPlatformVersion = "1.0.0"
}
configurations {
javac2
}
dependencies {
compile 'com.intellij:forms_rt:7.0.3'
javac2 group:'com.intellij', name:'javac2', version: '7.0.3'
}
// use IntelliJ's javac2 to compile the .form classes
compileJava {
doLast {
new File(projectDir,'build/classes/main').mkdirs()
ant.taskdef(name: 'javac2',
classname: 'com.intellij.ant.Javac2',
classpath: configurations.javac2.asPath)
ant.javac2(srcdir: 'src/main/java',
classpath: configurations.compile.asPath,
destdir: 'build/classes/main',
debug: "on",
debugLevel: "lines",
deprecation: "off",
includeAntRuntime: false,
optimize: "off",
source: sourceCompatibility,
target: targetCompatibility
)
}
}
dependencies {
implementation group: 'com.jgoodies', name: 'jgoodies-forms', version: '1.9.0'
implementation 'com.intellij:forms_rt:7.0.3'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.0.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.0.1"
testCompile 'com.willowtreeapps.assertk:assertk-jvm:0.12'
testCompile "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testCompile "org.junit.jupiter:junit-jupiter-params:$junitVersion"
runtime "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
runtime "org.junit.platform:junit-platform-console:$junitPlatformVersion"
}
distributions {
main {
contents {
from(documentationToPdf) {
into 'documentation'
}
}
}
}
distZip.version = ''
distTar.version = ''
mainClassName = 'MainController'