add gradle fatJar task

This commit is contained in:
Govindass 2020-05-02 20:02:25 +03:00
parent 83f71e147b
commit b2a53078a6
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]