trying to add new plugin for publishing

This commit is contained in:
2025-05-14 20:47:09 +06:00
parent 9d04d49628
commit 1bf479a0b7
4 changed files with 13 additions and 2 deletions

View File

@@ -3,6 +3,10 @@ if (ext.getProperties()["do_publish"] == false) {
}
apply plugin: 'maven-publish'
apply plugin: 'com.vanniktech.maven.publish'
mavenPublishing {
}
task javadocsJar(type: Jar) {
archiveClassifier = 'javadoc'
@@ -76,7 +80,7 @@ publishing {
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
maven {
name = "sonatype"
url = uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/")
url = uri("https://central.sonatype.com/api/v1")
credentials {
username = project.hasProperty('SONATYPE_USER') ? project.property('SONATYPE_USER') : System.getenv('SONATYPE_USER')