forked from daquino/liquify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
46 lines (37 loc) · 859 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
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
group 'com.refactify'
version '1.0'
apply plugin: 'java'
sourceCompatibility = 1.7
repositories {
mavenLocal()
mavenCentral()
}
shadowJar {
manifest {
attributes 'Main-Class': 'com.refactify.Liquify'
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile "org.liquibase:liquibase-core:2.0.5"
compile "org.yaml:snakeyaml:1.13"
}
task prepareDist(dependsOn: 'shadowJar') << {
copy {
from ('build/libs/') {
rename 'liquify(.*).jar', 'liquify.jar'
}
into 'build/dist/libs'
}
copy {
from 'src/main/shell/'
into 'build/dist/'
}
}
task dist(dependsOn: ['clean', 'prepareDist'], type: Zip) {
from ('build/dist')
into (baseName + '-' + version)
}