From 4a73e4e57dd1a032958e29002ecce284e504c152 Mon Sep 17 00:00:00 2001 From: Deividas Strioga Date: Mon, 16 Apr 2018 13:36:28 +0300 Subject: [PATCH] Add javadoc --- build.gradle | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9a77f99..3a7e67e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,8 @@ -group 'com.xandryex' +group 'com.github.deividasstr' version '0.3' apply plugin: 'java-library' +apply plugin: 'maven' sourceCompatibility = 1.8 @@ -15,3 +16,18 @@ dependencies { implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '3.17' } +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource +} + +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar +} +