-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (45 loc) · 1.36 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
group 'com.gitbug.corneil.requirements'
version '1.0-SNAPSHOT'
subprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
}
project(':core') {
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
}
// This build should fail with a compile error.
project(':tests') {
apply plugin: 'application'
mainClassName = 'com.github.corneil.tests.MyApp'
dependencies {
compile project(':core')
}
compileJava {
options.fork = false
options.verbose = false
def remoteDebug = System.getenv('REMOTE_DEBUG') ?: '0'
if (remoteDebug.toInteger() != 0) {
options.fork = true
options.forkOptions.with {
def agentLibOptions = ['-agentlib:jdwp=transport=dt_socket']
agentLibOptions << 'suspend=y'
if (remoteDebug.toInteger() == 1) {
agentLibOptions << 'server=y'
} else {
agentLibOptions << 'server=n'
}
agentLibOptions << 'address=7777'
jvmArgs += ['-Dstatic.processor.debug=true','-Xdebug', agentLibOptions.join(',')]
memoryInitialSize = '64m'
memoryMaximumSize = '256m'
}
}
}
}