From a6e4359216ac6dc95583dd1c6591243af71f5d92 Mon Sep 17 00:00:00 2001 From: Gravit Date: Wed, 28 Aug 2019 15:55:58 +0700 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20=D0=93=D0=B5=D0=BD=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20JavaDoc,=20=D0=BF=D1=83=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=D1=86=D0=B8=D1=8F=20ServerWrapperAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LaunchServer/build.gradle | 11 ++++++++ Launcher/build.gradle | 12 +++++++++ LauncherAPI/build.gradle | 12 +++++++++ LauncherCore/build.gradle | 12 +++++++++ ServerWrapper/build.gradle | 55 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) diff --git a/LaunchServer/build.gradle b/LaunchServer/build.gradle index a4df21d6..d948cc3d 100644 --- a/LaunchServer/build.gradle +++ b/LaunchServer/build.gradle @@ -40,6 +40,15 @@ ) } +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier = 'sources' +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier = 'javadoc' +} task cleanjar(type: Jar, dependsOn: jar) { classifier = 'clean' @@ -170,6 +179,8 @@ task dumpClientLibs(type: Copy) { artifact(cleanjar) { classifier "" } + artifact sourcesJar + artifact javadocJar pom { name = 'GravitLauncher LaunchServer API' description = 'GravitLauncher LaunchServer Module API' diff --git a/Launcher/build.gradle b/Launcher/build.gradle index 2c56ea69..2cc9e3cb 100644 --- a/Launcher/build.gradle +++ b/Launcher/build.gradle @@ -28,6 +28,16 @@ "Multi-Release-Jar": "true") } +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier = 'sources' +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier = 'javadoc' +} + shadowJar { classifier = null relocate 'org.objectweb.asm', 'pro.gravit.repackage.org.objectweb.asm' @@ -65,6 +75,8 @@ task dumpLibs(type: Copy) { artifact(jar) { classifier "" } + artifact sourcesJar + artifact javadocJar pom { name = 'GravitLauncher Client API' description = 'GravitLauncher Client Module API' diff --git a/LauncherAPI/build.gradle b/LauncherAPI/build.gradle index 734e878a..b87715e7 100644 --- a/LauncherAPI/build.gradle +++ b/LauncherAPI/build.gradle @@ -11,6 +11,16 @@ compile project(':LauncherCore') classifier = 'clean' } +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier = 'sources' +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier = 'javadoc' +} + publishing { publications { launcherwsapi(MavenPublication) { @@ -18,6 +28,8 @@ compile project(':LauncherCore') artifact(jar) { classifier "" } + artifact sourcesJar + artifact javadocJar pom { name = 'GravitLauncher WebSocket API' description = 'GravitLauncher WebSocket Module API' diff --git a/LauncherCore/build.gradle b/LauncherCore/build.gradle index dfb4e882..2360d0de 100644 --- a/LauncherCore/build.gradle +++ b/LauncherCore/build.gradle @@ -13,6 +13,16 @@ classifier = 'clean' } +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier = 'sources' +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier = 'javadoc' +} + publishing { publications { launchercore(MavenPublication) { @@ -20,6 +30,8 @@ artifact(jar) { classifier "" } + artifact sourcesJar + artifact javadocJar pom { name = 'GravitLauncher Core Utils' description = 'GravitLauncher Core Utils' diff --git a/ServerWrapper/build.gradle b/ServerWrapper/build.gradle index 62795a88..65c459a8 100644 --- a/ServerWrapper/build.gradle +++ b/ServerWrapper/build.gradle @@ -26,6 +26,16 @@ "Can-Set-Native-Method-Prefix": "true") } +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier = 'sources' +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier = 'javadoc' +} + dependencies { pack project(':LauncherAuthlib') pack 'org.apache.httpcomponents:httpclient:4.5.7' @@ -39,6 +49,51 @@ pack project(':LauncherAuthlib') exclude 'module-info.class' } +publishing { + publications { + serverwrapperapi(MavenPublication) { + artifactId = 'serverwrapper-api' + artifact(jar) { + classifier "" + } + artifact sourcesJar + artifact javadocJar + pom { + name = 'GravitLauncher ServerWrapper API' + description = 'GravitLauncher ServerWrapper Module API' + url = 'https://launcher.gravit.pro' + licenses { + license { + name = 'GNU General Public License, Version 3.0' + url = 'https://www.gnu.org/licenses/gpl-3.0.html' + } + } + developers { + developer { + id = 'gravit' + name = 'Gravit' + email = 'gravit.min@ya.ru' + } + developer { + id = 'zaxar163' + name = 'Zaxar163' + email = 'zahar.vcherachny@yandex.ru' + } + } + + scm { + connection = 'scm:git:https://github.com/GravitLauncher/Launcher.git' + developerConnection = 'scm:git:ssh://git@github.com:GravitLauncher/Launcher.git' + url = 'https://launcher.gravit.pro/' + } + } + } + } +} + +signing { + sign publishing.publications.serverwrapperapi +} build.dependsOn tasks.shadowJar \ No newline at end of file