-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
40 lines (32 loc) · 913 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
apply plugin: 'java'
apply plugin: 'idea'
compileJava.options.encoding = 'UTF-8'
group 'bf.cg'
version '1.0'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
compile 'ch.qos.logback:logback-classic:+',
'com.google.guava:guava:+',
'com.jolbox:bonecp:+',
'org.springframework:spring-jdbc:+',
'com.beust:jcommander:+'
runtime fileTree(include: ['*.jar'], dir: 'lib')
testCompile 'junit:junit:+'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'bf.cg.Main'
}
baseName = 'g'
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}