diff --git a/.github/workflows/deploy_jca.yml b/.github/workflows/deploy_jca.yml new file mode 100644 index 00000000..293e27c4 --- /dev/null +++ b/.github/workflows/deploy_jca.yml @@ -0,0 +1,35 @@ +name: Deploy old version JavaCryptographicArchitecture + +on: + push + +jobs: + deployment: + runs-on: ubuntu-latest + name: JavaCryptographicArchitecture old version deployment + steps: + - name: Checkout source code + uses: actions/checkout@v3 + # Sets up Java version + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-package: 'jdk' + java-version: '11' + server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin + server-username: OSSRH_USERNAME # Env var that holds your OSSRH user name + server-password: OSSRH_PASSWORD # Env var that holds your OSSRH user pw + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret + gpg-passphrase: SIGN_KEY_PASS # Env var that holds the key's passphrase + # Sets up Maven version + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: 3.6.3 + - name: Build & Deploy JavaCryptographicArchitecture + run: mvn -f JavaCryptographicArchitecture -B -U clean deploy -Pdeployment + env: + SIGN_KEY_PASS: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }} + OSSRH_USERNAME: ${{ secrets.SONATYPE_USER }} + OSSRH_PASSWORD: ${{ secrets.SONATYPE_PW }} \ No newline at end of file diff --git a/JavaCryptographicArchitecture/pom.xml b/JavaCryptographicArchitecture/pom.xml index 968c4589..65ff1e21 100644 --- a/JavaCryptographicArchitecture/pom.xml +++ b/JavaCryptographicArchitecture/pom.xml @@ -6,6 +6,88 @@ JavaCryptographicArchitecture 1.4 CrySL Rules Bundle + + + Eclipse Public License - v2.0 + https://www.eclipse.org/legal/epl-2.0/ + + + + + CogniCrypt + CogniCrypt + cognicrypt@eim.upb.de + + + + scm:git:git@github.com:CROSSINGTUD/Crypto-API-Rules.git + scm:git:ssh://github.com:CROSSINGTUD/Crypto-API-Rules.git + https://github.com/CROSSINGTUD/Crypto-API-Rules/tree/master/JavaCryptographicArchitecture + + + JavaCryptographicArchitecture CrySL ruleset + https://github.com/CROSSINGTUD/Crypto-API-Rules/tree/master/JavaCryptographicArchitecture + + + + deployment + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.1 + + + attach-source + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.4 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + maven-release-plugin + 3.0.1 + + @{project.version} + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.7.0 + true + + ossrh + https://s01.oss.sonatype.org + true + + + + + + src @@ -30,6 +112,7 @@ + @@ -39,19 +122,15 @@ provided + - soot-snapshot - Soot snapshot repository - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-snapshot/ - default + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots/ - true - soot-release - Soot release repository - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/ - default + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ \ No newline at end of file