-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (31 loc) · 892 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
defaultTasks 'sh', 'bat'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
mainClassName='jdbcCopy'; // for 'gradle run' and MANIFEST.MF
ext.groovyScriptName="${projectDir}/scripts/jdbcCopy.groovy";
dependencies {
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
testCompile 'junit:junit:4.11'
runtime "commons-cli:commons-cli:1.2"
runtime 'org.apache.ant:ant:1.9.3'
runtime 'com.h2database:h2:1.3.175'
}
repositories {
mavenCentral()
}
jar {
from {
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it).matching {
exclude { detail ->
detail.getFile().getParentFile().getName().equals("META-INF") && !detail.getFile().getName().equals("dgminfo")
}
}
}
}
manifest {
attributes("Main-Class": mainClassName)
}
}
jar.dependsOn groovyJar