This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
83 lines (71 loc) · 2.32 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
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.50"
id "org.jetbrains.kotlin.kapt" version "1.3.50"
id "org.openjfx.javafxplugin" version "0.0.8"
}
group 'net.craftventure'
version '1.0-SNAPSHOT'
//plugins {
// id 'kotlin'
// id 'org.openjfx.javafxplugin' version '0.0.8'
//}
//apply plugin: 'kotlin'
//apply plugin: 'org.openjfx.javafxplugin'
javafx {
version = "13"
// version = "11.0.2"
modules = [ 'javafx.base', 'javafx.graphics', 'javafx.controls', 'javafx.fxml', 'javafx.media' ]
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'no.tornado:tornadofx:1.7.14'
compile 'com.jfoenix:jfoenix:8.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.12'
compile 'io.reactivex.rxjava2:rxkotlin:2.2.0'
// compile 'io.reactivex.rxjava2:rxjavafx:2.0.2'
compile 'com.jakewharton.rxrelay2:rxrelay:2.0.0'
// compile 'com.github.thomasnield:rxkotlinfx:0.0.2'
compile 'org.apache.commons:commons-text:1.2'
compile 'org.apache.commons:commons-math3:3.6.1'
compile 'com.google.code.gson:gson:2.8.2'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Craftventure Composer',
'Implementation-Version': version,
'Main-Class': 'net.craftventure.composer.App'
}
println jar.path
if (rootProject.properties.containsKey("outputlocation") && rootProject.properties.containsKey("outputfilename") &&
outputlocation != null && outputfilename != null) {
archiveName = outputfilename
} else
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
tasks.withType(Jar) {
if (rootProject.properties.containsKey("outputlocation") && rootProject.properties.containsKey("outputfilename") &&
outputlocation != null && outputfilename != null) {
destinationDir = new File(outputlocation)
}
}
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}