-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (73 loc) · 2.37 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.22'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'java'
id 'application'
id 'com.github.jk1.dependency-license-report' version '2.1'
}
licenseReport {
def licenseDir = file("${sourceSets.main.resources.srcDirs.first()}/lee/aspect/dev/dynamicrp/licenses")
outputDir = licenseDir
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
javafx {
version = "19.0.2"
modules = ['javafx.controls', 'javafx.fxml']
}
ext {
kotlin_version = '1.7.22'
junit_platform_version = '5.9.2'
gson_version = '2.10.1'
json_version = '20230227'
slf4j_version = '2.0.5'
junixsocket_version = '2.6.2'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.google.code.gson:gson:$gson_version"
implementation "org.json:json:$json_version"
implementation "org.slf4j:slf4j-api:$slf4j_version"
implementation "org.slf4j:slf4j-simple:$slf4j_version"
implementation "com.kohlschutter.junixsocket:junixsocket-common:$junixsocket_version"
implementation "com.kohlschutter.junixsocket:junixsocket-native-common:$junixsocket_version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_platform_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_platform_version"
//implementation "org.jetbrains:annotations:24.0.1"
runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:win"
runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:linux"
runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:mac"
}
mainClassName = 'lee.aspect.dev.dynamicrp.Launch'
tasks.withType(KotlinCompile).configureEach {
kotlinOptions.jvmTarget = '1.8'
}
/*
tasks.named('processResources') {
dependsOn 'generateLicenseReport'
}
tasks.named('build').configure {
dependsOn 'generateLicenseReport'
}
*/
application {
getMainClass().set('lee.aspect.dev.dynamicrp.Launch')
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'lee.aspect.dev.dynamicrp.Launch'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
}