-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
97 lines (86 loc) · 3.02 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
88
89
90
91
92
93
94
95
96
97
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
classpath 'net.onedaybeard.artemis:artemis-odb-gradle-plugin:2.3.0'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'artemis'
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
flatDir {
dirs 'lib'
}
mavenCentral()
}
dependencies {
compile group: 'net.onedaybeard.artemis', name: 'artemis-odb', version: '2.3.0'
compile group: 'net.onedaybeard.artemis', name: 'artemis-odb-serializer', version: '2.3.0'
compile group: 'net.onedaybeard.artemis', name: 'artemis-odb-serializer-json', version: '2.3.0'
compile group: 'net.onedaybeard.artemis', name: 'artemis-odb-serializer-kryo', version: '2.3.0'
compile group: 'net.mostlyoriginal.artemis-odb', name: 'contrib-core', version: '2.4.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
compile group: 'org.jetlang', name: 'jetlang', version: '0.2.12'
compile group: 'javax.vecmath', name: 'vecmath', version: '1.5.2'
compile group: 'com.googlecode.lanterna', name: 'lanterna', version: '3.0.0'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'org.json', name: 'json', version: '20171018'
compile name: 'haste-all-1.0.0'
compile name: 'jsonbeans-0.9'
compile group: 'com.formdev', name: 'flatlaf', version: 1.0
compile group: 'com.formdev', name: 'flatlaf-extras', version: 1.0
implementation 'org.eclipse.collections:eclipse-collections-api:10.4.0'
implementation 'org.eclipse.collections:eclipse-collections:10.4.0'
testCompile 'junit:junit:4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '3.1.0'
testCompile 'org.awaitility:awaitility:3.0.0'
testCompile 'io.cucumber:cucumber-java:6.8.1'
}
compileJava {
sourceCompatibility = 1.9
targetCompatibility = 1.9
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
weave {
dependsOn build
classesDir = new File(buildDir, "classes/java/main")
enableArtemisPlugin = true
enablePooledWeaving = true
generateLinkMutators = true
optimizeEntitySystems = true
}
jar {
manifest {
attributes 'Main-Class': 'com.vast.Main'
}
}
shadowJar {
dependsOn weave
minimize {
exclude(dependency('com.formdev:.*:.*'))
}
archiveBaseName.set('vast-server')
archiveClassifier.set('shadow')
archiveVersion.set('')
}
task cucumber() {
dependsOn assemble, testClasses
doLast {
javaexec {
main = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'pretty', 'src/test/resources']
}
}
}