-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/5.2' into merge-release/5.1-release/5.2-2023-12…
…-01-2
- Loading branch information
Showing
17 changed files
with
113 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
@Library('corda-shared-build-pipeline-steps@5.1') _ | ||
@Library('corda-shared-build-pipeline-steps@5.2') _ | ||
|
||
cordaPipelineKubernetesAgent( | ||
runIntegrationTests: false, | ||
dailyBuildCron: 'H 02 * * *', | ||
publishOSGiImage: true, | ||
gradleAdditionalArgs: '-Dscan.tag.Nightly-Build', | ||
generateSbom: true, | ||
javaVersion: '17', | ||
workerBaseImageTag: '17.0.4.1-17.36.17' | ||
javaVersion: '17' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
steps: | ||
- uses: fpicalausa/[email protected] | ||
with: | ||
dry-run: true | ||
dry-run: false | ||
days-before-branch-stale: 30 | ||
days-before-branch-delete: 14 | ||
stale-branch-message: "@{author} The branch [{branchName}]({branchUrl}) hasn't been updated in the last 30 days and is marked as stale. It will be removed in 14 days.\r\nIf you want to keep this branch around, delete this comment or add new commits to this branch." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'Close stale issues and PR' | ||
on: | ||
schedule: | ||
- cron: '0 0 * * 1-5' | ||
|
||
jobs: | ||
remove-stale-prs: | ||
name: Remove stale PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
debug-only: false | ||
exempt-pr-labels: 'DO_NOT_CLOSE' | ||
stale-pr-message: 'This PR is stale because it has been open 7 days with no activity. Remove the `Stale` label or add a comment - otherwise this will be closed in 7 days.' | ||
close-pr-message: 'This PR was closed because it has been stale for 7 days with no activity.' | ||
days-before-issue-stale: -1 | ||
days-before-issue-close: -1 | ||
days-before-pr-stale: 7 | ||
days-before-pr-close: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
api/src/main/kotlin/net/corda/cli/api/AbstractCordaCliVersionProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package net.corda.cli.api | ||
|
||
import picocli.CommandLine.IVersionProvider | ||
import java.util.jar.Manifest | ||
|
||
/** | ||
* An abstract class that will read version information out of the plugin manifest. | ||
* | ||
* Builds version information using these attributes: | ||
* - Plugin-Name | ||
* - Plugin-Version | ||
* - Plugin-Provider | ||
* - Plugin-Git-Commit | ||
* | ||
* To apply, inherit from this class: | ||
* | ||
* class VersionProvider : AbstractCordaCliVersionProvider() | ||
* | ||
* Then add to your command annotation: | ||
* | ||
* versionProvider = VersionProvider::class | ||
*/ | ||
abstract class AbstractCordaCliVersionProvider : IVersionProvider { | ||
override fun getVersion(): Array<String> = this.javaClass | ||
.getResourceAsStream("/META-INF/MANIFEST.MF") | ||
?.use { | ||
Manifest(it).mainAttributes.run { | ||
arrayOf( | ||
"${getValue("Plugin-Name")} ${getValue("Plugin-Version")}", | ||
"Provider: ${getValue("Plugin-Provider")}", | ||
"Commit ID: ${getValue("Plugin-Git-Commit")}" | ||
) | ||
} | ||
} ?: emptyArray() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: net.corda.cli.application.BootKt | ||
Multi-Release: true | ||
Plugin-Name: Corda CLI | ||
Plugin-Version: 5.1.0-TEST | ||
Plugin-Provider: R3 | ||
Plugin-Git-Commit: TEST | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters