forked from erma/erma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (40 loc) · 1022 Bytes
/
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
/*
* ERMA Gradle build file.
*
* To execute build:
* $ ./gradlew
*
* If executing via a pre-installed version of gradle or your IDE, make sure to export GRADLE_OPTS
* as defined in this project's gradlew script.
*/
subprojects {
usePlugin 'java'
usePlugin 'project-reports'
defaultTasks 'assemble'
sourceSets {
main {
java { srcDir 'src/java' }
}
test {
java { srcDir 'test/src/java' }
resources { srcDir 'test/src/java' }
}
}
repositories {
mavenCentral()
}
// erma-ext/erma-foo-processor sub-project generates jar with basename "erma-foo-processor"
def shortProjectName = project.name.split('/')[-1]
jar.baseName = shortProjectName
task srcJar(type: Jar) {
from sourceSets.main.java
baseName = shortProjectName
classifier = 'src'
}
artifacts {
archives jar, srcJar
}
task wrapper(type: Wrapper) {
gradleVersion = '0.8'
}
}