diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..69ff4ae --- /dev/null +++ b/.build.yml @@ -0,0 +1,8 @@ +image: ubuntu/lts +packages: + - openjdk-17-jdk-headless + - maven +tasks: + - build: | + cd thorp + mvn -B install diff --git a/.github/GitHub-Actions.org b/.github/GitHub-Actions.org deleted file mode 100644 index 1c882b8..0000000 --- a/.github/GitHub-Actions.org +++ /dev/null @@ -1,41 +0,0 @@ -* Deploying using Github Actions - -** Actions definition: workflow/sonatype-deploy.yml - -When a GitHub Release is created, usually from a tag, this action will trigger. - -Using JDK8 the software will be packaged, including running any tests. - -Then the Deploy script will sign the created artifacts then deploy them according to the distributionManagement configuration in the `pom.xml`. - -** Deploy Script - -Uses a signing key provided from the GitHub Actions Secrets as an environment variable to sign the artifact(s) before they are then deployed. - -*** Inputs - -**** DEPLOY_PROJECTS (optional) - -An optional list of modules in a multi-module project to be deployed. If this value is not specified, then all projects will be deployed. - -** Maven Configuration - -Picks up the credentials from Environment variables for authenticating both with GPG and with the target deployment server (e.g. sonatype-nexus). - -*** Inputs - -**** NEXUS_USERNAME - -The username for your account on the deployment server. - -**** NEXUS_PASSWORD - -The password for your account on the deployement server. - -**** GPG_KEYNAME - -The key to use when signing. - -**** GPG_PASSPHRASE - -The passphrase to unlock the key to use when signing. diff --git a/.github/NOTES b/.github/NOTES deleted file mode 100644 index 64253c9..0000000 --- a/.github/NOTES +++ /dev/null @@ -1,53 +0,0 @@ -Add subkeys: - -???? - -Publish: - -gpg --send-keys --keyserver keyserver.ubuntu.com $KEYID -gpg --send-keys --keyserver pgp.mit.edu $KEYID -gpg --send-keys --keyserver pool.sks-keyservers.net $KEYID - -Backup: - -gpg --export --armor pcampbell@kemitix.net > gpg-key-backup.asc -gpg --export-secret-keys --armor pcampbell@kemitix.net >> gpg-key-backup.asc - -Export sub-keys: - -gpg --export-secret-subkeys pcampbell@kemitix.net > subkeys - -Remove master keys: - -gpg --delete-secret-key pcampbell@kemitix.net - -Import sub-keys and clean up: - -gpg --import subkeys - -shred --remove subkeys - -Delete any encryption subkeys: - -gpg --edit-key pcampbell@kemitix.net - -2 -delkey -save - -Change passphrase: - -gpg --edit-key pcampbell@kemitix.net -passwd -save - -Export keys: - -gpg --export --armor pcampbell@kemitix.net > codesigning.asc -gpg --export-secret-keys --armor pcampbell@kemitix.net >> codesigning.asc - -Encrypt keys: - -gpg --symmetric --cipher-algo AES256 codesigning.asc - -shred codesigning.asc diff --git a/.github/codesigning.asc.gpg b/.github/codesigning.asc.gpg deleted file mode 100644 index f5c71e0..0000000 Binary files a/.github/codesigning.asc.gpg and /dev/null differ diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index a217b34..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: 2 -updates: -- package-ecosystem: maven - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 10 diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 146ec7d..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,34 +0,0 @@ -name-template: 'v$RESOLVED_VERSION 🌈' -tag-template: 'v$RESOLVED_VERSION' -categories: - - title: '🚀 Features' - labels: - - 'feature' - - 'enhancement' - - title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: '🧰 Maintenance' - labels: - - 'chore' - - 'dependencies' -change-template: '- $TITLE @$AUTHOR (#$NUMBER)' -version-resolver: - major: - labels: - - 'major' - minor: - labels: - - 'minor' - patch: - labels: - - 'patch' - default: patch -exclude-labels: - - 'skip-changelog' -template: | - ## Changes - - $CHANGES diff --git a/.github/settings.xml b/.github/settings.xml deleted file mode 100644 index 8791e47..0000000 --- a/.github/settings.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - sonatype-nexus-snapshots - ${env.NEXUS_USERNAME} - ${env.NEXUS_PASSWORD} - - - sonatype-nexus-staging - ${env.NEXUS_USERNAME} - ${env.NEXUS_PASSWORD} - - - - - gpg-sign - - true - - - gpg - ${env.GPG_KEYNAME} - ${env.GPG_PASSPHRASE} - - - - diff --git a/.github/stale.yaml b/.github/stale.yaml deleted file mode 100644 index dc90e5a..0000000 --- a/.github/stale.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security -# Label to use when marking an issue as stale -staleLabel: wontfix -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/build-maven.yml b/.github/workflows/build-maven.yml deleted file mode 100644 index fd1129e..0000000 --- a/.github/workflows/build-maven.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: maven-build - -on: - push: - branches: '*' - pull_request: - branches: '*' - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - java: [ 8, 11, 14 ] - steps: - - uses: kamiazya/setup-graphviz@v1 - - uses: actions/checkout@v2 - - name: setup-jdk-${{ matrix.java }} - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - name: build-jar - run: mvn -B install diff --git a/.github/workflows/deploy-sonatype.yml b/.github/workflows/deploy-sonatype.yml deleted file mode 100644 index ea469cb..0000000 --- a/.github/workflows/deploy-sonatype.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: sonatype-deploy - -on: - push: - tags: - - "v*" - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: kamiazya/setup-graphviz@v1 - - uses: actions/checkout@v2 - - name: Set up JDK - uses: actions/setup-java@v1 - with: - java-version: 8 - - name: Build with Maven - run: mvn -B install - - name: Nexus Repo Publish - run: | - gpg --quiet \ - --batch \ - --yes \ - --decrypt \ - --passphrase="${{ secrets.GPG_PASSPHRASE }}" \ - --output codesigning.asc \ - .github/codesigning.asc.gpg - gpg --batch \ - --fast-import codesigning.asc - mvn --settings .github/settings.xml \ - -Dskip-Tests=true \ - -P release \ - -B \ - deploy - env: - NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} - NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml deleted file mode 100644 index f3d4750..0000000 --- a/.github/workflows/draft-release.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: draft-release - -on: - push: - branches: - - master - -jobs: - update_draft_release: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5.11.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}