-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (36 loc) · 989 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
group 'pl.edu.agh'
version '1.0-SNAPSHOT'
apply plugin: 'application'
mainClassName = 'bank.Bank'
apply plugin: 'java'
sourceCompatibility = 1.8
sourceSets {
main {
java {
srcDirs= ["src/main/java"]
}
resources {
srcDirs= ["src/main/resources"]
}
}
}
task fatJarBank(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'bank.Bank'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }{
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
with jar
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'io.grpc', name: 'grpc-all', version: '1.11.0'
compile group: 'com.zeroc', name: 'ice', version: '3.7.1'
}