-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
41 lines (33 loc) · 818 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
apply plugin: 'java'
apply plugin: 'idea'
version = '1.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
flatDir {
dirs 'libs'
}
mavenCentral()
}
dependencies {
compile name: 'flexmonster-compressor'
compile group: 'org.postgresql', name: 'postgresql', version: '42.1.4'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
}
jar {
manifest {
attributes "Main-Class": "be.looorent.flexmonster.CLI"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task copyJar {
println "coucou"
copy {
into "dist"
from "build/libs/flexmonster-wrapper-${version}.jar"
}
}
jar.finalizedBy copyJar