[FEATURE] Подпись файлов при публикации в Maven

This commit is contained in:
Gravit 2019-08-13 03:20:28 +07:00
parent d20cf39e89
commit 8b71025896
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
5 changed files with 60 additions and 21 deletions

View file

@ -163,27 +163,52 @@ task dumpClientLibs(type: Copy) {
publishing { publishing {
publications {
launchserverapi(MavenPublication) { publications {
launchserverapi(MavenPublication) {
artifactId = 'launchserver-api' artifactId = 'launchserver-api'
artifact cleanjar artifact cleanjar
pom { pom {
name = 'GravitLauncher LaunchServer API'
description = 'GravitLauncher LaunchServer Module API' name = 'GravitLauncher LaunchServer API'
url = 'https://launcher.gravit.pro'
licenses { description = 'GravitLauncher LaunchServer Module API'
license {
name = 'GNU General Public License, Version 3.0' url = 'https://launcher.gravit.pro'
url = 'https://www.gnu.org/licenses/gpl-3.0.html'
} licenses {
}
scm { license {
connection = 'scm:git:https://github.com/GravitLauncher/Launcher.git'
developerConnection = 'scm:git:ssh://git@github.com:GravitLauncher/Launcher.git' name = 'GNU General Public License, Version 3.0'
url = 'https://launcher.gravit.pro/'
} url = 'https://www.gnu.org/licenses/gpl-3.0.html'
}
} }
}
}
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.launchserverapi
}

View file

@ -83,3 +83,8 @@ task dumpLibs(type: Copy) {
} }
} }
} }
signing {
sign publishing.publications.launcherclientapi
}

View file

@ -35,3 +35,7 @@ compile project(':LauncherCore')
} }
} }
} }
signing {
sign publishing.publications.launcherwsapi
}

View file

@ -37,3 +37,7 @@
} }
} }
} }
signing {
sign publishing.publications.launchercore
}

View file

@ -1,6 +1,7 @@
plugins { plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0' apply false id 'com.github.johnrengelman.shadow' version '5.0.0' apply false
id 'maven-publish' id 'maven-publish'
id 'signing'
} }
group = 'pro.gravit.launcher' group = 'pro.gravit.launcher'
version = '5.0.5-SNAPSHOT' version = '5.0.5-SNAPSHOT'