Move from bintray to SonaType

This commit is contained in:
ShubhamRwt
2022-02-14 14:10:11 +05:30
parent 7141fc094b
commit da23c929c0
3 changed files with 2 additions and 38 deletions

View File

@@ -1,9 +1,7 @@
plugins { plugins {
id "org.sonarqube" version "2.7" id "org.sonarqube" version "2.7"
id "com.jfrog.bintray" version "1.8.4"
id "me.champeau.gradle.jmh" version "0.4.8" id "me.champeau.gradle.jmh" version "0.4.8"
id 'org.asciidoctor.convert' version '1.6.0' id 'org.asciidoctor.convert' version '1.6.0'
id "com.jfrog.artifactory" version "4.9.5"
id "org.ajoberstar.github-pages" version "1.7.2" id "org.ajoberstar.github-pages" version "1.7.2"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0" id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
} }
@@ -17,7 +15,6 @@ ext {
allprojects { allprojects {
apply plugin: 'jacoco' apply plugin: 'jacoco'
apply plugin: 'me.champeau.gradle.jmh' apply plugin: 'me.champeau.gradle.jmh'
apply plugin: 'com.jfrog.artifactory'
version = '2.0.0-SNAPSHOT' version = '2.0.0-SNAPSHOT'
group 'io.github.swagger2markup' group 'io.github.swagger2markup'
@@ -32,7 +29,7 @@ allprojects {
} }
} }
} }
artifactoryPublish.skip = true // apply to all projects except the root //artifactoryPublish.skip = true // apply to all projects except the root
ext { ext {
coreProjects = subprojects.findAll { coreProjects = subprojects.findAll {
@@ -113,7 +110,6 @@ subprojects {
tasks.check.dependsOn tasks.jacocoTestReport tasks.check.dependsOn tasks.jacocoTestReport
test { test {
dependsOn(subprojects.test) // required by cobertura to aggregate report dependsOn(subprojects.test) // required by cobertura to aggregate report
} }

View File

@@ -44,38 +44,6 @@ artifacts {
archives javadocJar archives javadocJar
} }
bintray {
user = project.hasProperty('bintrayUsername') ? project.property('bintrayUsername') : ''
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : ''
dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
publications = ['mavenJava']
pkg {
repo = 'Maven'
name = "${projectArtifactId}"
userOrg = "${projectArtifactId}"
websiteUrl = "${projectUrl}"
issueTrackerUrl = issuesUrl
vcsUrl = scmUrl
desc = project.description
licenses = ['Apache-2.0']
version {
name = project.version
vcsTag = "v${project.version}"
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
//Optional. The passphrase for GPG signing'
passphrase = project.hasProperty('gpgPassphrase') ? project.property('gpgPassphrase') : ''
}
mavenCentralSync {
sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
user = project.hasProperty('ossUser') ? project.property('ossUser') : '' //OSS user token
password = project.hasProperty('ossPassword') ? project.property('ossPassword') : '' //OSS user password
}
}
}
}
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {

View File

@@ -1,7 +1,7 @@
apply plugin: 'org.asciidoctor.convert' apply plugin: 'org.asciidoctor.convert'
apply plugin: 'org.ajoberstar.github-pages' apply plugin: 'org.ajoberstar.github-pages'
artifactoryPublish.skip=true //artifactoryPublish.skip=true
sonarqube.skipProject=true sonarqube.skipProject=true
asciidoctor.dependsOn test asciidoctor.dependsOn test