From b2a53078a6d50eca424d15c73955ae659c0fb230 Mon Sep 17 00:00:00 2001 From: Govindass Date: Sat, 2 May 2020 20:02:25 +0300 Subject: [PATCH] add gradle fatJar task --- build.gradle | 10 ++++++++++ src/main/java/META-INF/MANIFEST.MF | 3 +++ src/main/resources/plugin.yml | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/main/java/META-INF/MANIFEST.MF diff --git a/build.gradle b/build.gradle index 55fad9f..84a03bc 100644 --- a/build.gradle +++ b/build.gradle @@ -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 +} diff --git a/src/main/java/META-INF/MANIFEST.MF b/src/main/java/META-INF/MANIFEST.MF new file mode 100644 index 0000000..a13c998 --- /dev/null +++ b/src/main/java/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: com.btk5h.skriptdb.SkriptDB + diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 1c1c644..1958e68 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,4 +1,4 @@ name: skript-db -version: 0.2.1 +version: 0.3.0-Govindas main: com.btk5h.skriptdb.SkriptDB depend: [Skript]