Skip to content

Commit 155075e

Browse files
authored
Fix not working with our OSS publish pipeline. (#3)
Need to include the nexus publishing plugin.
1 parent 38d9cc1 commit 155075e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
id 'com.google.protobuf' version '0.8.18'
66
id 'idea'
77
id 'org.ajoberstar.grgit' version '4.1.1'
8+
id 'io.github.gradle-nexus.publish-plugin' version "1.1.0"
89
}
910

1011
group = "com.transferwise.envoy"
@@ -76,6 +77,15 @@ apply plugin: "signing"
7677
ext.artifactoryUser = project.hasProperty("artifactoryUser") ? project.artifactoryUser : System.env.ARTIFACTORY_USER as String
7778
ext.artifactoryPassword = project.hasProperty("artifactoryPassword") ? project.artifactoryPassword : System.env.ARTIFACTORY_PASSWORD as String
7879

80+
nexusPublishing {
81+
repositories {
82+
sonatype {
83+
username = System.getenv("SONATYPE_USER")
84+
password = System.getenv("SONATYPE_PASSWORD")
85+
}
86+
}
87+
}
88+
7989
publishing {
8090
publications {
8191
mavenJava(MavenPublication) {

0 commit comments

Comments
 (0)