Skip to content

Commit dc159e9

Browse files
author
Todd Berman
committed
try this
1 parent ef6a6da commit dc159e9

1 file changed

Lines changed: 31 additions & 29 deletions

File tree

build.gradle

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -53,39 +53,41 @@ signing {
5353
sign configurations.archives
5454
}
5555

56-
uploadArchives {
57-
repositories {
58-
mavenDeployer {
59-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
60-
61-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
62-
authentication(userName: ossrhUsername, password: ossrhPassword)
63-
}
56+
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
57+
uploadArchives {
58+
repositories {
59+
mavenDeployer {
60+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
61+
62+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
63+
authentication(userName: ossrhUsername, password: ossrhPassword)
64+
}
6465

65-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
66-
authentication(userName: ossrhUsername, password: ossrhPassword)
67-
}
66+
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
67+
authentication(userName: ossrhUsername, password: ossrhPassword)
68+
}
6869

69-
pom.project {
70-
name 'graphql-rxjava'
71-
description 'GraphQL Rx-Java'
72-
url "https://github.com/nfl/graphql-rxjava"
73-
scm {
70+
pom.project {
71+
name 'graphql-rxjava'
72+
description 'GraphQL Rx-Java'
7473
url "https://github.com/nfl/graphql-rxjava"
75-
connection "https://github.com/nfl/graphql-rxjava"
76-
developerConnection "https://github.com/nfl/graphql-rxjava"
77-
}
78-
licenses {
79-
license {
80-
name 'MIT'
81-
url 'https://github.com/nfl/graphql-rxjava/blob/master/LICENSE'
82-
distribution 'repo'
74+
scm {
75+
url "https://github.com/nfl/graphql-rxjava"
76+
connection "https://github.com/nfl/graphql-rxjava"
77+
developerConnection "https://github.com/nfl/graphql-rxjava"
8378
}
84-
}
85-
developers {
86-
developer {
87-
id 'tberman'
88-
name 'Todd Berman'
79+
licenses {
80+
license {
81+
name 'MIT'
82+
url 'https://github.com/nfl/graphql-rxjava/blob/master/LICENSE'
83+
distribution 'repo'
84+
}
85+
}
86+
developers {
87+
developer {
88+
id 'tberman'
89+
name 'Todd Berman'
90+
}
8991
}
9092
}
9193
}

0 commit comments

Comments
 (0)