-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
48 lines (43 loc) · 1.11 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'distribution'
application {
// Run the console using: gradle -Pconsole run
if ( project.hasProperty("console") ) {
mainClass = 'net.grinder.Console'
} else {
mainClass = 'net.grinder.Grinder'
}
}
repositories {
mavenCentral()
maven { url "https://maven.jumpmind.com/repo" }
maven { url "https://repository.codehaus.org" }
maven { url "https://clojars.org/repo" }
}
dependencies {
implementation "org.jumpmind.symmetric:symmetric-core:3.14.11"
implementation "net.sf.grinder:grinder:3.11"
implementation "ring:ring-core:1.1.0"
implementation "ring:ring-servlet:1.1.0"
}
distributions {
if ( project.hasProperty("console") ) {
main {
contents {
into ('script') {
from 'src/main/console'
}
}
}
}
}
run {
if ( project.hasProperty("console") ) {
workingDir = 'src/main/console'
jvmArgs '-Djava.awt.headless=false'
} else {
workingDir = 'src/main/agent-0'
}
}