-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
35 lines (30 loc) · 831 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
apply plugin: 'java'
dependencies {
compile fileTree(dir: 'jars', include: '*.jar')
}
test{
exclude 'src/test/**'
}
task buildZip(type: Zip) {
from compileJava
from processResources
into('lib') {
from configurations.runtimeClasspath
}
}
/*jar {
manifest.attributes(
// results in "Class-Path: guava-15.0.jar"
'Class-Path': configurations.runtime.files.collect { it.name }.join(' ')
)
}*/
task customFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.amazonaws.lambda.demo.TestCaseStreamHandler',
'Class-Path': configurations.runtime.files.collect { it.name }.join(' ')
}
baseName = 'all-in-one-jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
build.dependsOn buildZip