Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit ca5f718

Browse files
authored
Merge pull request #147 from bootstraponline/distZip
Add distZip task for creating releases
2 parents 1053eb1 + f3f542c commit ca5f718

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ClassySharkWS/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ group 'classyshark'
22
version '1.0-SNAPSHOT'
33

44
apply plugin: 'java'
5+
apply plugin: 'java-library-distribution' // task: gradle distZip
56

67
sourceCompatibility = 1.8
78

@@ -39,3 +40,12 @@ dependencies {
3940
compile name: 'retrofit-2.0.2', ext: 'jar'
4041
compile name: 'util-2.0.6', ext: 'jar'
4142
}
43+
44+
jar {
45+
manifest {
46+
attributes(
47+
'Main-Class': 'com.google.classyshark.Main',
48+
"Class-Path": configurations.compile.collect { "lib/$it.name" }.join(' ')
49+
)
50+
}
51+
}

0 commit comments

Comments
 (0)