-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
48 lines (41 loc) · 832 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
apply plugin: 'java'
defaultTasks 'jar'
description = '3D Image-Guided Paintbrush'
// tag::wrapper[]
task wrapper(type: Wrapper) {
gradleVersion = '2.6'
}
// end::wrapper[]
// tag::repositories[]
repositories {
mavenCentral()
}
// end::repositories[]
// tag::sourceSets[]
sourceSets {
main {
output.resourcesDir = output.classesDir
}
demo {
output.resourcesDir = output.classesDir
compileClasspath += sourceSets.main.runtimeClasspath
}
}
// end::sourceSets[]
// tag::jar[]
jar {
baseName '3d-painting'
duplicatesStrategy = 'exclude'
manifest {
attributes 'Implementation-Title': project.description
}
from sourceSets.demo.output
}
// end::jar[]
// tag::dependencies[]
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile fileTree('libs')
}
// end::dependencies[]