-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
74 lines (59 loc) · 1.45 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
plugins {
id 'com.github.ben-manes.versions' version '0.25.0'
}
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'com.github.ben-manes.versions'
mainClassName = 'cmanager.Main'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '0.3.1'
sourceSets {
main {
java {
srcDir 'src'
}
}
test {
java {
srcDirs = ["test"]
}
}
}
task Version(type: Copy) {
outputs.files 'src/cmanager/global/Version.java'
from('templates') {
exclude '**/*.properties'
}
expand(
version: version
)
into 'src/cmanager/global'
}
compileJava.dependsOn Version
clean.doFirst {
delete 'src/cmanager/global/Version.java'
}
repositories {
mavenCentral()
maven {
url 'https://josm.openstreetmap.de/nexus/content/groups/public/'
}
}
dependencies {
compile group: 'commons-codec', name: 'commons-codec', version: '1.13'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
compile group: 'joda-time', name: 'joda-time', version: '2.10.3'
compile group: 'org.openstreetmap.jmapviewer', name: 'jmapviewer', version: '2.8'
testCompile 'junit:junit:4.12'
}
jar {
baseName = 'cm'
manifest { attributes 'Main-Class': mainClassName }
from('.') {
include 'ressources/images/*.jpg'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}