Skip to content

Commit 26c881f

Browse files
committed
Update release.gradle to build local release
1 parent 558cf20 commit 26c881f

1 file changed

Lines changed: 10 additions & 24 deletions

File tree

release.gradle

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
publishing {
22
publications {
33
mavenJava(MavenPublication) {
4+
groupId = 'com.github.asana'
5+
artifactId = 'webpush-java-asana-fork'
6+
47
from components.java
58
artifact sourcesJar
69
artifact javadocJar
710
pom {
8-
name = 'web-push'
9-
description = 'A Web Push library for Java.'
10-
url = 'https://github.com/web-push-libs/webpush-java'
11+
name = 'webpush-java-asana-fork'
12+
description = 'A Web Push library for Java (Asana fork).'
13+
url = 'https://github.com/Asana/webpush-java'
1114
scm {
12-
connection = 'scm:git:git@github.com:web-push-libs/webpush-java.git'
13-
developerConnection = 'scm:git:git@github.com:web-push-libs/webpush-java.git'
14-
url = 'git@github.com:web-push-libs/webpush-java.git'
15+
connection = 'scm:git:git@github.com:Asana/webpush-java.git'
16+
developerConnection = 'scm:git:git@github.com:Asana/webpush-java.git'
17+
url = 'git@github.com:Asana/webpush-java.git'
1518
}
1619
licenses {
1720
license {
@@ -27,28 +30,11 @@ publishing {
2730
}
2831
}
2932
}
30-
3133
}
3234
}
3335
repositories {
3436
maven {
35-
credentials {
36-
username ossrhUsername
37-
password ossrhPassword
38-
}
39-
url getRepositoryUrl()
37+
url = uri("${buildDir}/repo")
4038
}
4139
}
4240
}
43-
44-
signing {
45-
sign publishing.publications.mavenJava
46-
}
47-
48-
def getRepositoryUrl() {
49-
if (version.endsWith('SNAPSHOT')) {
50-
return 'https://oss.sonatype.org/content/repositories/snapshots/'
51-
} else {
52-
return 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
53-
}
54-
}

0 commit comments

Comments
 (0)