diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..42e4e1204 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy CryptoAnalysis + +on: [workflow_dispatch] + +jobs: + deployment: + runs-on: ubuntu-latest + name: CryptoAnalysis 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: '8' + 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 CryptoAnalysis + run: mvn -B -U clean deploy -Pdeployment -DskipTests + 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/.gitignore b/.gitignore index 0f048ac6b..9d6c3ee1b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ bin/ tmp/ *.tmp +*.temp *.bak *.swp *~.nib diff --git a/CryptoAnalysis-Android/pom.xml b/CryptoAnalysis-Android/pom.xml index f2bc6aa01..a3e27ea75 100644 --- a/CryptoAnalysis-Android/pom.xml +++ b/CryptoAnalysis-Android/pom.xml @@ -8,12 +8,12 @@ de.fraunhofer.iem CryptoAnalysis-Parent - ${revision} + 2.8.0 ../pom.xml - 2.7.1 + 2.12.0 @@ -69,53 +69,30 @@ CryptoAnalysis - de.tud.sse - soot-infoflow - ${flowDroidVersion} - - - de.tud.sse - soot-infoflow-android - ${flowDroidVersion} - - - de.tud.sse - soot-infoflow-cmd - ${flowDroidVersion} - + de.fraunhofer.sit.sse.flowdroid + soot-infoflow + ${flowDroidVersion} + + + de.fraunhofer.sit.sse.flowdroid + soot-infoflow-summaries + ${flowDroidVersion} + + + de.fraunhofer.sit.sse.flowdroid + soot-infoflow-android + ${flowDroidVersion} + - 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/ - - - - soot-snapshot - soot snapshots - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-snapshot/ - - false - - - - - soot-release - soot release - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/ - - - diff --git a/CryptoAnalysis/pom.xml b/CryptoAnalysis/pom.xml index b21125486..3ff6bae37 100644 --- a/CryptoAnalysis/pom.xml +++ b/CryptoAnalysis/pom.xml @@ -8,7 +8,7 @@ de.fraunhofer.iem CryptoAnalysis-Parent - ${revision} + 2.8.0 ../pom.xml @@ -296,7 +296,7 @@ de.darmstadt.tu.crossing.CrySL de.darmstadt.tu.crossing.CrySL - 2.0.1 + 2.0.2 org.eclipse.xtext @@ -336,33 +336,12 @@ - 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/ - - - - soot-snapshot - soot snapshots - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-snapshot/ - - false - - - - soot-release - soot release - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/ - - diff --git a/pom.xml b/pom.xml index 71cbb346a..da2e4d3f7 100644 --- a/pom.xml +++ b/pom.xml @@ -7,21 +7,107 @@ de.fraunhofer.iem CryptoAnalysis-Parent - ${revision} + 2.8.0 pom CryptoAnalysis-parent + + + 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/CryptoAnalysis.git + scm:git:ssh://github.com:CROSSINGTUD/CryptoAnalysis.git + https://github.com/CROSSINGTUD/CryptoAnalysis + + + CogniCrypt_SAST: CrySL-to-Static Analysis Compiler + https://github.com/CROSSINGTUD/CryptoAnalysis + CryptoAnalysis CryptoAnalysis-Android - 2.8.0-SNAPSHOT UTF-8 3.3.0 + + + + deployment + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ossrh + https://s01.oss.sonatype.org + true + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.6.0 + + + attach-javadoc + + jar + + + + + + org.apache.maven.plugins + maven-release-plugin + 3.0.1 + + @{project.version} + + + + + + + @@ -88,32 +174,14 @@ - - - soot-snapshot - soot snapshot - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-snapshot/ - - false - - - - soot-release - soot release - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/ - - false - - - - soot-snapshot - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-snapshot/ + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots/ - soot-release - https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/ + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/