Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
chore: revert to nexus staging plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 committed Oct 14, 2021
1 parent ea35bae commit 3d3b059
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions build.gradle
Expand Up @@ -10,18 +10,18 @@ buildscript {
jcenter()
}
dependencies {
classpath "net.ltgt.gradle:gradle-apt-plugin:0.21",
"com.github.jengelman.gradle.plugins:shadow:6.1.0",
"io.github.gradle-nexus:publish-plugin:1.1.0",
"gradle.plugin.com.dorongold.plugins:task-tree:1.5"
classpath "net.ltgt.gradle:gradle-apt-plugin:0.10",
"com.github.jengelman.gradle.plugins:shadow:6.1.0",
"io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0",
"gradle.plugin.com.dorongold.plugins:task-tree:1.5"

classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.8"
}
}

apply plugin: 'java'
apply plugin: 'com.github.sherter.google-java-format'
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'io.codearte.nexus-staging'

// TODO: Populate this from dependencies.properties version property (for proper Gradle-Bazel sync)
project.version = "2.5.3" // {x-version-update:gax:current}
Expand All @@ -46,16 +46,12 @@ verifyGoogleJavaFormat.onlyIf { JavaVersion.current().isJava8Compatible() }

if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword') &&
!nonReleaseProjects.contains(project.name)) {
nexusPublishing {
// Nexus staging plugin only works at root project level
// See https://github.com/Codearte/gradle-nexus-staging-plugin/issues/47
nexusStaging {
username = ossrhUsername
password = ossrhPassword
packageGroup = "com.google.api"
repositories {
sonatype { //or custom repository name
nexusUrl.set(uri('https://google.oss.sonatype.org/service/local/'))
snapshotRepositoryUrl.set(uri('https://google.oss.sonatype.org/content/repositories/snapshots/'))
username = ossrhUsername
password = ossrhPassword
}
}
}
}

Expand Down

0 comments on commit 3d3b059

Please sign in to comment.