-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (57 loc) · 1.49 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
apply plugin: 'java'
apply plugin: 'maven'
group = 'at.jarosoft'
version = '0.9.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
sourceSets {
main {
java {
srcDirs = ['src']
}
resources {
srcDirs = ["src"]
exclude "**/*.java"
}
}
test {
java {
srcDirs = ['test']
}
}
}
repositories {
mavenCentral()
flatDir {
dirs 'lib'
}
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.5.6'
compile group: 'org.json', name: 'json', version:'20090211'
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.25'
compile group: 'com.taskadapter.redmineapi', name: 'redmine-java-api', version: '3.1.3-SNAPSHOT'
}
jar {
manifest {
attributes "Main-Class": "at.jarosoft.tymy2.Tymy2"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Tymy FatJar',
'Implementation-Version': version,
'Main-Class': 'at.jarosoft.tymy2.Tymy2'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}