mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-11 16:16:47 -04:00

* It was due to we had upgraded the Nexus plugin while upgrading the gradle. So this new version of Nexus generates the sources and jar files itself, and we have a task where we are generating the sources and jar so due to this it detected the multiple jar and sources files and failed the CD. So we have removed our task so that the Nexus plugin will generate and upload the jar and source files itself.
65 lines
1.7 KiB
Groovy
65 lines
1.7 KiB
Groovy
apply plugin: 'maven-publish'
|
|
apply plugin: 'signing'
|
|
|
|
def siteUrl = 'https://www.kiwix.org/en/'
|
|
def gitUrl = 'https://github.com/kiwix/libkiwix.git'
|
|
|
|
group = GROUP_ID
|
|
version = VERSION
|
|
|
|
afterEvaluate {
|
|
publishing {
|
|
publications {
|
|
release(MavenPublication) {
|
|
|
|
groupId GROUP_ID
|
|
artifactId ARTIFACT_ID
|
|
version VERSION
|
|
|
|
from components.release
|
|
|
|
pom {
|
|
name = ARTIFACT_ID
|
|
description = 'LibKiwix Android library'
|
|
url = siteUrl
|
|
licenses {
|
|
license {
|
|
name = 'GPLv3'
|
|
url = 'https://www.gnu.org/licenses/gpl-3.0.en.html'
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id = 'kiwix'
|
|
name = 'kiwix'
|
|
email = 'contact@kiwix.org'
|
|
}
|
|
}
|
|
scm {
|
|
connection = gitUrl
|
|
developerConnection = gitUrl
|
|
url = siteUrl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
|
|
credentials {
|
|
username = ossrhUsername
|
|
password = ossrhPassword
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
signing {
|
|
useInMemoryPgpKeys(
|
|
keyId,
|
|
key,
|
|
password,
|
|
)
|
|
sign publishing.publications
|
|
} |