-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
55 lines (42 loc) · 1.28 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
apply plugin: 'idea'
apply plugin: 'eclipse'
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'signing'
group = 'de.otto'
version = '0.4.0'
targetCompatibility = "1.8"
sourceCompatibility = "1.8"
repositories {
mavenCentral()
add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) {
name = 'localLibRepository'
addArtifactPattern "$projectDir/../lib/[organisation]/[module]-[revision](-[classifier]).[ext]"
descriptor = 'optional'
checkmodified = true
}
add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) {
name = 'localExampleRepository'
addArtifactPattern "$projectDir/../../lib/[organisation]/[module]-[revision](-[classifier]).[ext]"
descriptor = 'optional'
checkmodified = true
}
}
jar {
manifest.attributes provider: 'gradle'
}
test {
useTestNG()
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
}