Skip to content

Commit

Permalink
Ensure artifacts are signed, and correct name in pom for bom
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Jones <[email protected]>
  • Loading branch information
planetf1 committed Mar 24, 2023
1 parent c737b58 commit e214104
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ if (System.getenv("CI")) {
def signingKeyId = System.getenv('OSSRH_GPG_KEYID')
// We use these values from secrets rather than gradle.properties
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications.connector
sign publishing.publications.mavenmodule
}
}

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ subprojects {
def signingKeyId = System.getenv('OSSRH_GPG_KEYID')
// We use these values from secrets rather than gradle.properties
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications.connector
sign publishing.publications.mavenmodule
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,17 @@ private void refreshRegisteredIntegrationConnector(RegisteredIntegrationConnecto
{
IntegrationServiceHandler integrationServiceHandler = integrationServiceHandlerMap.get(serviceURLMarker);

String userId = serverUserId;

if (registeredIntegrationConnectorElement.getRegistrationProperties().getConnectorUserId() != null)
{
userId = registeredIntegrationConnectorElement.getRegistrationProperties().getConnectorUserId();
}

connectorHandler = new IntegrationConnectorHandler(registeredIntegrationConnectorElement.getConnectorId(),
registeredIntegrationConnectorElement.getElementHeader().getGUID(),
registeredIntegrationConnectorElement.getRegistrationProperties().getConnectorName(),
registeredIntegrationConnectorElement.getRegistrationProperties().getConnectorUserId(),
userId,
registeredIntegrationConnectorElement.getRegistrationProperties().getStartDate(),
registeredIntegrationConnectorElement.getRegistrationProperties().getStopDate(),
registeredIntegrationConnectorElement.getRegistrationProperties().getRefreshTimeInterval(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
public class IntegrationServiceHandler
{
private final String localServerName; /* Initialized in constructor */
private final String localServerUserId; /* Initialized in constructor */
private final IntegrationServiceConfig serviceConfig; /* Initialized in constructor */
private final IntegrationContextManager contextManager; /* Initialized in constructor */
private final AuditLog auditLog; /* Initialized in constructor */
Expand All @@ -45,11 +46,13 @@ public class IntegrationServiceHandler
* @param auditLog logging destination
*/
public IntegrationServiceHandler(String localServerName,
String localServerUserId,
IntegrationServiceConfig serviceConfig,
IntegrationContextManager contextManager,
AuditLog auditLog)
{
this.localServerName = localServerName;
this.localServerUserId = localServerUserId;
this.serviceConfig = serviceConfig;
this.contextManager = contextManager;
this.auditLog = auditLog;
Expand Down Expand Up @@ -101,10 +104,16 @@ public List<IntegrationConnectorHandler> initialize()
connectorConfig.setPermittedSynchronization(serviceConfig.getDefaultPermittedSynchronization());
}

String userId = localServerUserId;

if (connectorConfig.getConnectorUserId() != null)
{
userId = connectorConfig.getConnectorUserId();
}
IntegrationConnectorHandler connectorHandler = new IntegrationConnectorHandler(connectorConfig.getConnectorId(),
null,
connectorConfig.getConnectorName(),
connectorConfig.getConnectorUserId(),
userId,
null,
null,
connectorConfig.getRefreshTimeInterval(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

/**
* IntegrationDaemonOperationalServices is responsible for controlling the startup and shutdown of
* of the integration daemon services.
* the integration daemon services.
*/
public class IntegrationDaemonOperationalServices
{
Expand Down Expand Up @@ -155,6 +155,7 @@ else if (staticConfiguration.isEmpty())
contextManager.createClients();

IntegrationServiceHandler integrationServiceHandler = new IntegrationServiceHandler(localServerName,
localServerUserId,
integrationServiceConfig,
contextManager,
auditLog);
Expand Down

0 comments on commit e214104

Please sign in to comment.