forked from swisscom/cf-sample-app-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
35 lines (30 loc) · 730 Bytes
/
Copy pathbuild.gradle
File metadata and controls
35 lines (30 loc) · 730 Bytes
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
apply plugin: 'java'
sourceCompatibility = 1.8
version = '1.0.0'
jar {
manifest {
attributes 'Implementation-Title': 'CF Sample App Java',
'Implementation-Version': version,
'Main-Class': 'com.swisscom.cloud.cloudfoundry.sampleapp.java.ProductService'
}
from {
(configurations.runtime).collect {
it.isDirectory() ? it : zipTree(it)
}
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.sparkjava:spark-core:2.5'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.4'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}