add gradle fatJar task

This commit is contained in:
Govindas 2020-05-02 20:02:25 +03:00
parent 8d94a85779
commit 2570408906
3 changed files with 14 additions and 1 deletions

View File

@ -43,3 +43,13 @@ task buildReadme(type: Javadoc) {
options.addStringOption('file', 'README.md')
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
}

View File

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: com.btk5h.skriptdb.SkriptDB

View File

@ -1,4 +1,4 @@
name: skript-db
version: 0.2.1
version: 0.3.0-Govindas
main: com.btk5h.skriptdb.SkriptDB
depend: [Skript]