Skip to content

Commit 34b9e73

Browse files
Merge pull request #168 from killbill/ossrh-migration
Ossrh migration
2 parents 48e8338 + a0b5c98 commit 34b9e73

4 files changed

Lines changed: 15 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ jobs:
4141
uses: actions/setup-java@v1
4242
with:
4343
java-version: 11
44-
- name: Configure Sonatype mirror
45-
uses: s4u/maven-settings-action@v2.3.0
46-
# Go to Sonatype directly to avoid delay syncs (could get rid of this if actions/setup-java were to support mirrors).
47-
with:
48-
mirrors: '[{"id": "oss-releases", "name": "Sonatype releases", "mirrorOf": "*", "url": "https://oss.sonatype.org/content/repositories/releases/"}]'
4944
- name: Download Java dependencies
5045
# We do as much as we can, but it may not be enough (https://issues.apache.org/jira/browse/MDEP-82)
5146
run: |
@@ -64,28 +59,29 @@ jobs:
6459
# Will be pushed as part of the release process, only if the release is successful
6560
git commit -m "pom.xml: update killbill-oss-parent to ${{ github.event.inputs.parent_version }}"
6661
- name: Configure settings.xml for release
67-
uses: actions/setup-java@v1
62+
uses: actions/setup-java@v3
6863
with:
6964
java-version: 11
70-
server-id: ossrh-releases
71-
server-username: OSSRH_USER
72-
server-password: OSSRH_PASS
65+
distribution: temurin
66+
server-id: central
67+
server-username: MAVEN_USERNAME
68+
server-password: MAVEN_PASSWORD
7369
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
7470
gpg-passphrase: GPG_PASSPHRASE
7571
- name: Release artifacts
7672
if: github.event.inputs.perform_version == ''
7773
env:
78-
OSSRH_USER: ${{ secrets.OSSRH_USER }}
79-
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
74+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
75+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
8076
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
8177
# It will still check the remote but hopefully not download much (0 B at 0 B/s). -o isn't safe because of MDEP-82 (see above).
8278
run: |
8379
mvn ${MAVEN_FLAGS} release:clean release:prepare release:perform
8480
- name: Perform release
8581
if: github.event.inputs.perform_version != ''
8682
env:
87-
OSSRH_USER: ${{ secrets.OSSRH_USER }}
88-
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
83+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
84+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
8985
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
9086
# It will still check the remote but hopefully not download much (0 B at 0 B/s). -o isn't safe because of MDEP-82 (see above).
9187
# See https://issues.apache.org/jira/browse/SCM-729 for why the release.properties file is required.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
<parent>
2323
<groupId>org.kill-bill.billing</groupId>
2424
<artifactId>killbill-oss-parent</artifactId>
25-
<version>0.146.16</version>
25+
<version>0.146.63</version>
2626
</parent>
2727
<groupId>org.kill-bill.billing.plugin.java</groupId>
2828
<artifactId>analytics-plugin</artifactId>
29-
<version>8.1.3-SNAPSHOT</version>
29+
<version>8.1.4-SNAPSHOT</version>
3030
<packaging>bundle</packaging>
3131
<name>Kill Bill OSGI Analytics bundle</name>
3232
<description>Kill Bill Analytics plugin</description>

src/main/java/org/killbill/billing/plugin/analytics/AnalyticsActivator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
import org.killbill.notificationq.api.NotificationQueueConfig;
5959
import org.killbill.notificationq.dao.NotificationEventModelDao;
6060
import org.osgi.framework.BundleContext;
61-
import org.skife.config.ConfigurationObjectFactory;
61+
import org.skife.config.AugmentedConfigurationObjectFactory;
6262
import org.skife.jdbi.v2.DBI;
6363
import org.slf4j.Logger;
6464
import org.slf4j.LoggerFactory;
@@ -89,7 +89,7 @@ public void start(final BundleContext context) throws Exception {
8989

9090
final Executor executor = BusinessExecutor.newCachedThreadPool(configProperties);
9191

92-
final NotificationQueueConfig config = new ConfigurationObjectFactory(configProperties.getProperties()).buildWithReplacements(NotificationQueueConfig.class,
92+
final NotificationQueueConfig config = new AugmentedConfigurationObjectFactory(configProperties.getProperties()).buildWithReplacements(NotificationQueueConfig.class,
9393
ImmutableMap.<String, String>of("instanceName", "analytics"));
9494
if ("notifications".equals(config.getTableName())) {
9595
logger.warn("Analytics plugin mis-configured: you are probably missing the property org.killbill.notificationq.analytics.tableName=analytics_notifications");

src/test/java/org/killbill/billing/plugin/analytics/AnalyticsTestSuiteWithEmbeddedDB.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import org.killbill.notificationq.dao.NotificationEventModelDao;
4242
import org.mockito.Mockito;
4343
import org.osgi.framework.BundleContext;
44-
import org.skife.config.ConfigurationObjectFactory;
44+
import org.skife.config.AugmentedConfigurationObjectFactory;
4545
import org.skife.jdbi.v2.DBI;
4646
import org.testng.Assert;
4747
import org.testng.ITestContext;
@@ -87,7 +87,7 @@ public void setUp(final ITestContext context) throws Exception {
8787

8888
analyticsSqlDao = dbi.onDemand(BusinessAnalyticsSqlDao.class);
8989

90-
final NotificationQueueConfig config = new ConfigurationObjectFactory(osgiConfigPropertiesService.getProperties()).buildWithReplacements(NotificationQueueConfig.class,
90+
final NotificationQueueConfig config = new AugmentedConfigurationObjectFactory(osgiConfigPropertiesService.getProperties()).buildWithReplacements(NotificationQueueConfig.class,
9191
ImmutableMap.<String, String>of("instanceName", "analytics"));
9292
notificationQueueService = new DefaultNotificationQueueService(dbi, clock, config, metricRegistry.getMetricRegistry());
9393

0 commit comments

Comments
 (0)