-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
99 lines (82 loc) · 1.92 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
98
99
ext {
mainClass = 'org.diylc.app.DIYLCStarter'
minMemory = '512M'
maxMemory = '2048M'
scriptRun = 'true'
}
allprojects {
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'org.diylc'
version = '4.0.0-SNAPSHOT'
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]
compileJava {
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
compileGroovy {
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
compileTestJava {
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
compileTestGroovy {
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.5'
testCompile(group: 'junit', name: 'junit', version: '4.+')
testCompile(group: 'org.spockframework', name: 'spock-core', version: '1.0-groovy-2.4')
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
repositories {
mavenLocal()
mavenCentral()
maven { url "http://bits.netbeans.org/maven2/" }
}
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
project(':diylc-component-api') {
dependencies {
compile project(':diylc-core')
}
}
project(':diylc-component-library') {
dependencies {
compile project(':diylc-component-api')
}
}
project(':diylc-serialization') {
dependencies {
compile project(':diylc-component-api')
}
}
project(':diylc-app') {
dependencies {
compile project(':diylc-component-library')
}
}