forked from Limework/skript-db
add gradle fatJar task
This commit is contained in:
parent
8d94a85779
commit
2570408906
10
build.gradle
10
build.gradle
@ -43,3 +43,13 @@ task buildReadme(type: Javadoc) {
|
|||||||
options.addStringOption('file', 'README.md')
|
options.addStringOption('file', 'README.md')
|
||||||
options.addStringOption('markdown', '-quiet')
|
options.addStringOption('markdown', '-quiet')
|
||||||
}
|
}
|
||||||
|
task fatJar(type: Jar) {
|
||||||
|
manifest {
|
||||||
|
attributes 'Implementation-Title': 'Gradle Jar File Example',
|
||||||
|
'Implementation-Version': version,
|
||||||
|
'Main-Class': 'com.mkyong.DateUtils'
|
||||||
|
}
|
||||||
|
baseName = project.name + '-all'
|
||||||
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
with jar
|
||||||
|
}
|
||||||
|
3
src/main/java/META-INF/MANIFEST.MF
Normal file
3
src/main/java/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Manifest-Version: 1.0
|
||||||
|
Main-Class: com.btk5h.skriptdb.SkriptDB
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
name: skript-db
|
name: skript-db
|
||||||
version: 0.2.1
|
version: 0.3.0-Govindas
|
||||||
main: com.btk5h.skriptdb.SkriptDB
|
main: com.btk5h.skriptdb.SkriptDB
|
||||||
depend: [Skript]
|
depend: [Skript]
|
||||||
|
Loading…
Reference in New Issue
Block a user