Skip to content

Commit

Permalink
Deploy version 1.4 to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
svenfeld committed Jun 13, 2024
1 parent e0f4d07 commit 94b198f
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 9 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy_jca.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
97 changes: 88 additions & 9 deletions JavaCryptographicArchitecture/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,88 @@
<artifactId>JavaCryptographicArchitecture</artifactId>
<version>1.4</version>
<name>CrySL Rules Bundle</name>
<licenses>
<license>
<name>Eclipse Public License - v2.0</name>
<url>https://www.eclipse.org/legal/epl-2.0/</url>
</license>
</licenses>
<developers>
<developer>
<id>CogniCrypt</id>
<name>CogniCrypt</name>
<email>[email protected]</email>
</developer>
</developers>
<scm>
<connection>scm:git:[email protected]:CROSSINGTUD/Crypto-API-Rules.git</connection>
<developerConnection>scm:git:ssh://github.com:CROSSINGTUD/Crypto-API-Rules.git</developerConnection>
<url>https://github.com/CROSSINGTUD/Crypto-API-Rules/tree/master/JavaCryptographicArchitecture</url>
</scm>

<description>JavaCryptographicArchitecture CrySL ruleset</description>
<url>https://github.com/CROSSINGTUD/Crypto-API-Rules/tree/master/JavaCryptographicArchitecture</url>

<profiles>
<profile>
<id>deployment</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-source</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<sourceDirectory>src</sourceDirectory>
Expand All @@ -30,6 +112,7 @@
</plugin>
</plugins>
</build>

<dependencies>
<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
<dependency>
Expand All @@ -39,19 +122,15 @@
<scope>provided</scope>
</dependency>
</dependencies>

<distributionManagement>
<snapshotRepository>
<id>soot-snapshot</id>
<name>Soot snapshot repository</name>
<url>https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-snapshot/</url>
<layout>default</layout>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<uniqueVersion>true</uniqueVersion>
<id>soot-release</id>
<name>Soot release repository</name>
<url>https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/</url>
<layout>default</layout>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>

0 comments on commit 94b198f

Please sign in to comment.