-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (58 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'eu.appsatori.fatjar'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'eu.appsatori:gradle-fatjar-plugin:0.3'
}
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile(
"commons-cli:commons-cli:1.4",
"io.apigee.trireme:trireme-node10src:0.9.4",
"io.apigee.trireme:trireme-core:0.9.4",
"io.apigee.trireme:trireme-kernel:0.9.4",
"org.slf4j:slf4j-api:1.7.26",
"ch.qos.logback:logback-classic:1.2.3",
"com.h2database:h2:1.4.197",
"mysql:mysql-connector-java:6.0.6",
"org.postgresql:postgresql:42.2.4",
files([
"libs/ojdbc8.jar",
"libs/takipi-trireme-util-0.9.5-SNAPSHOT.jar"
])
)
}
fatJar {
manifest {
attributes 'Main-Class': 'com.takipi.oss.dynajava.DynaliteJavaMain'
attributes 'Class-Path': '.'
}
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
}
task putDynaZipInResources() {
doLast {
if (rootProject.hasProperty("zipFile")) {
def resourcesDir = sourceSets.main.resources.srcDirs[0]
println "Copy $zipFile to $resourcesDir"
ant.copy(file: zipFile, tofile:"$resourcesDir/dynalite.zip", overwrite:true)
}
}
}
task copyJar(dependsOn: fatJar) {
doLast {
if (rootProject.hasProperty("jarTargetFile")) {
println "Copying $jar.archivePath to $jarTargetFile"
ant.copy(file:jar.archivePath, tofile:jarTargetFile)
}
}
}
processResources.dependsOn(putDynaZipInResources)
build.dependsOn(copyJar)