forked from Tichuana-Tichu/tichuana-tichu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (46 loc) · 1.23 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
plugins {
id 'application'
id 'java'
id 'org.openjfx.javafxplugin' version '0.0.9'
id 'org.beryx.jlink' version '2.22.2'
}
mainClassName = 'ch.tichuana.tichu.client.ClientLauncher'
jar {
into "src/ch/tichuana/tichu/client/resources", {
from 'src/ch/tichuana/tichu/client/resources'
}
into "src/ch/tichuana/tichu/server/resources", {
from 'src/ch/tichuana/tichu/server/resources'
}
manifest {
attributes 'Main-Class' : 'ch.tichuana.tichu.client.ClientLauncher'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
application {
mainClass = "ch.tichuana.tichu.client.ClientLauncher"
}
javafx {
version = "11.0.1"
modules = [ 'javafx.controls' ]
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['src/ch/tichuana/tichu']
}
resources {
srcDirs = ['src/ch/tichuana/tichu/client/resources', 'src/ch/tichuana/tichu/server/resources']
}
}
}
dependencies {
implementation "mysql:mysql-connector-java:8.0.16"
implementation 'com.googlecode.json-simple:json-simple:1.1'
implementation "org.junit.jupiter:junit-jupiter-api:5.7.0"
}