Skip to content

Commit 9d06aed

Browse files
committed
Publish directly to sonatype using the nexus plugin. Use the new url.
1 parent 0cc0343 commit 9d06aed

File tree

2 files changed

+78
-59
lines changed

2 files changed

+78
-59
lines changed

.github/workflows/nebula-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ jobs:
4949
NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }}
5050
- name: Publish release
5151
if: (!contains(github.ref, '-rc.'))
52-
run: ./gradlew --info -Prelease.useLastTag=true final
52+
run: |
53+
./gradlew --info -Prelease.useLastTag=true final
54+
./gradlew --info publishToSonatype closeAndReleaseSonatypeStagingRepository
5355
env:
5456
NETFLIX_OSS_SONATYPE_USERNAME: ${{ secrets.ORG_SONATYPE_USERNAME }}
5557
NETFLIX_OSS_SONATYPE_PASSWORD: ${{ secrets.ORG_SONATYPE_PASSWORD }}

build.gradle

Lines changed: 75 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugins {
22
id 'nebula.netflixoss' version '11.5.0'
3+
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
34
}
45

5-
66
ext.githubProjectName = 'Priam'
77

88
allprojects {
@@ -16,70 +16,87 @@ allprojects {
1616
google()
1717
}
1818

19+
// NEW: configure Nexus Publish for s01
20+
apply plugin: 'io.github.gradle-nexus.publish-plugin'
21+
22+
nexusPublishing {
23+
repositories {
24+
sonatype {
25+
// Use s01 host instead of oss
26+
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
27+
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
28+
29+
// Read credentials from env vars set in GitHub Actions
30+
username.set(System.getenv("NETFLIX_OSS_SONATYPE_USERNAME"))
31+
password.set(System.getenv("NETFLIX_OSS_SONATYPE_PASSWORD"))
32+
}
33+
}
34+
}
35+
1936
configurations {
20-
all*.exclude group: 'ch.qos.logback', module: 'logback-classic'
21-
all*.exclude group: 'ch.qos.logback', module: 'logback-core'
22-
all*.exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
37+
all*.exclude group: 'ch.qos.logback', module: 'logback-classic'
38+
all*.exclude group: 'ch.qos.logback', module: 'logback-core'
39+
all*.exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
2340
}
2441

2542
dependencies {
26-
implementation 'org.apache.commons:commons-lang3:3.8.1'
27-
implementation 'org.apache.commons:commons-text:1.8'
28-
implementation 'commons-logging:commons-logging:1.2'
29-
implementation 'org.apache.commons:commons-collections4:4.2'
30-
implementation 'commons-io:commons-io:2.6'
31-
implementation 'commons-cli:commons-cli:1.4'
32-
implementation 'com.sun.jersey.contribs:jersey-multipart:1.19.4'
33-
implementation 'com.sun.jersey:jersey-json:1.19.4'
34-
implementation 'com.sun.jersey:jersey-bundle:1.19.4'
35-
implementation 'com.sun.jersey.contribs:jersey-guice:1.19.4'
36-
implementation 'com.google.guava:guava:21.0'
37-
implementation 'com.google.code.findbugs:jsr305:3.0.2'
43+
implementation 'org.apache.commons:commons-lang3:3.8.1'
44+
implementation 'org.apache.commons:commons-text:1.8'
45+
implementation 'commons-logging:commons-logging:1.2'
46+
implementation 'org.apache.commons:commons-collections4:4.2'
47+
implementation 'commons-io:commons-io:2.6'
48+
implementation 'commons-cli:commons-cli:1.4'
49+
implementation 'com.sun.jersey.contribs:jersey-multipart:1.19.4'
50+
implementation 'com.sun.jersey:jersey-json:1.19.4'
51+
implementation 'com.sun.jersey:jersey-bundle:1.19.4'
52+
implementation 'com.sun.jersey.contribs:jersey-guice:1.19.4'
53+
implementation 'com.google.guava:guava:21.0'
54+
implementation 'com.google.code.findbugs:jsr305:3.0.2'
3855

39-
// AWS Services - SDK v1 (for EC2, AutoScaling, STS)
40-
implementation 'com.amazonaws:aws-java-sdk-core:latest.release'
41-
implementation 'com.amazonaws:aws-java-sdk-sns:latest.release'
42-
implementation 'com.amazonaws:aws-java-sdk-ec2:latest.release'
43-
implementation 'com.amazonaws:aws-java-sdk-autoscaling:latest.release'
44-
implementation 'com.amazonaws:aws-java-sdk-sts:latest.release'
56+
// AWS Services - SDK v1 (for EC2, AutoScaling, STS)
57+
implementation 'com.amazonaws:aws-java-sdk-core:latest.release'
58+
implementation 'com.amazonaws:aws-java-sdk-sns:latest.release'
59+
implementation 'com.amazonaws:aws-java-sdk-ec2:latest.release'
60+
implementation 'com.amazonaws:aws-java-sdk-autoscaling:latest.release'
61+
implementation 'com.amazonaws:aws-java-sdk-sts:latest.release'
4562

46-
// AWS Services - SDK v2 (for S3, SNS)
47-
implementation platform('software.amazon.awssdk:bom:2.20.0')
48-
implementation 'software.amazon.awssdk:s3'
49-
implementation 'software.amazon.awssdk:sts' // Needed for S3 role assumption
63+
// AWS Services - SDK v2 (for S3, SNS)
64+
implementation platform('software.amazon.awssdk:bom:2.20.0')
65+
implementation 'software.amazon.awssdk:s3'
66+
implementation 'software.amazon.awssdk:sts' // Needed for S3 role assumption
5067

51-
implementation 'com.google.inject:guice:4.2.2'
52-
implementation 'com.google.inject.extensions:guice-servlet:4.2.2'
53-
implementation 'org.quartz-scheduler:quartz:2.3.0'
54-
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
55-
implementation 'org.xerial.snappy:snappy-java:1.1.7.3'
56-
implementation 'org.yaml:snakeyaml:1.25'
57-
implementation 'org.apache.cassandra:cassandra-all:4.1.0'
58-
implementation 'javax.ws.rs:jsr311-api:1.1.1'
59-
implementation 'joda-time:joda-time:2.10.1'
60-
implementation 'org.apache.commons:commons-configuration2:2.4'
61-
implementation 'xerces:xercesImpl:2.12.0'
62-
implementation 'net.java.dev.jna:jna:5.2.0'
63-
implementation 'org.apache.httpcomponents:httpclient:4.5.6'
64-
implementation 'org.apache.httpcomponents:httpcore:4.4.11'
65-
implementation 'com.ning:compress-lzf:1.0.4'
66-
implementation 'com.google.code.gson:gson:2.8.5'
67-
implementation 'org.slf4j:slf4j-api:1.7.28'
68-
implementation 'org.slf4j:slf4j-log4j12:1.7.28'
69-
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
70-
implementation 'org.bouncycastle:bcpg-jdk16:1.46'
71-
implementation ('com.google.appengine.tools:appengine-gcs-client:0.8') {
72-
exclude module: 'guava'
73-
}
74-
implementation 'com.google.apis:google-api-services-storage:v1-rev141-1.25.0'
75-
implementation 'com.google.http-client:google-http-client-jackson2:1.28.0'
76-
implementation 'com.netflix.spectator:spectator-api:0.96.0'
77-
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
78-
testImplementation 'org.jmockit:jmockit:1.38'
79-
testImplementation "org.spockframework:spock-core:1.1-groovy-2.4"
80-
testImplementation "com.google.truth:truth:1.0.1"
81-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
82-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
68+
implementation 'com.google.inject:guice:4.2.2'
69+
implementation 'com.google.inject.extensions:guice-servlet:4.2.2'
70+
implementation 'org.quartz-scheduler:quartz:2.3.0'
71+
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
72+
implementation 'org.xerial.snappy:snappy-java:1.1.7.3'
73+
implementation 'org.yaml:snakeyaml:1.25'
74+
implementation 'org.apache.cassandra:cassandra-all:4.1.0'
75+
implementation 'javax.ws.rs:jsr311-api:1.1.1'
76+
implementation 'joda-time:joda-time:2.10.1'
77+
implementation 'org.apache.commons:commons-configuration2:2.4'
78+
implementation 'xerces:xercesImpl:2.12.0'
79+
implementation 'net.java.dev.jna:jna:5.2.0'
80+
implementation 'org.apache.httpcomponents:httpclient:4.5.6'
81+
implementation 'org.apache.httpcomponents:httpcore:4.4.11'
82+
implementation 'com.ning:compress-lzf:1.0.4'
83+
implementation 'com.google.code.gson:gson:2.8.5'
84+
implementation 'com.netflix.spectator:spectator-api:0.96.0'
85+
implementation 'org.slf4j:slf4j-api:1.7.28'
86+
implementation 'org.slf4j:slf4j-log4j12:1.7.28'
87+
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
88+
implementation 'org.bouncycastle:bcpg-jdk16:1.46'
89+
implementation ('com.google.appengine.tools:appengine-gcs-client:0.8') {
90+
exclude module: 'guava'
91+
}
92+
implementation 'com.google.apis:google-api-services-storage:v1-rev141-1.25.0'
93+
implementation 'com.google.http-client:google-http-client-jackson2:1.28.0'
94+
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
95+
testImplementation 'org.jmockit:jmockit:1.38'
96+
testImplementation "org.spockframework:spock-core:1.1-groovy-2.4"
97+
testImplementation "com.google.truth:truth:1.0.1"
98+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
99+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
83100
}
84101

85102
java {

0 commit comments

Comments
 (0)