[FEATURE] Генерация JavaDoc, публикация ServerWrapperAPI

This commit is contained in:
Gravit 2019-08-28 15:55:58 +07:00
parent afae94cffa
commit a6e4359216
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
5 changed files with 102 additions and 0 deletions

View file

@ -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'

View file

@ -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'

View file

@ -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'

View file

@ -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'

View file

@ -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