-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (36 loc) · 1.06 KB
/
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
45
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
}
}
repositories {
mavenCentral()
}
apply plugin: 'java' // or 'groovy'. Must be explicitly applied
apply plugin: 'com.github.johnrengelman.shadow'
////////////////////////////////////////////////////////////////////////////////////
dependencies {
compile "com.sun.jersey:jersey-core:1.10"
compile "com.sun.jersey:jersey-grizzly2:1.10"
compile 'org.glassfish.jersey.media:jersey-media-json-jackson:2.21'
compile 'com.github.taksan:skype-java-api:1.7'
}
shadowJar {
exclude 'config.properties'
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': "420 LOL WEED",
'Main-Class': 'au.com.grogsoft.YavaSkypePoster'
}
}
task zipShadowJar(type: Zip) {
dependsOn shadowJar
from 'src/main/resources'
from( 'build/libs') {
include "*-all.jar"
}
into('libs') {
from configurations.runtime
}
}