From 84d05bbce50208d3a6be94a0725ee6dab930a08f Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 24 Mar 2021 12:03:06 +0100 Subject: add first version of GitLab CI config --- .gitlab-ci.yml | 59 +++++++++++++++++++++++++++++++++++ README.md | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ moaSig/README.md | 85 -------------------------------------------------- moaSig/settings.gradle | 1 - 4 files changed, 144 insertions(+), 86 deletions(-) create mode 100644 .gitlab-ci.yml create mode 100644 README.md delete mode 100644 moaSig/README.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..56f443c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,59 @@ +image: gradle:6.8.3-jdk11 + +variables: + LC_ALL: "en_US.UTF-8" + LANG: "en_US.UTF-8" + LANGUAGE: "en_US" + LIB_NAME: "ms_specific" + GIT_DEPTH: "2" + SECURE_LOG_LEVEL: "debug" + PROJECT_RELEASE_PACKAGE: "../release/" + +include: + - template: Dependency-Scanning.gitlab-ci.yml + - template: Secret-Detection.gitlab-ci.yml + +stages: + - assemble + - test +# - package + - release + +cache: + paths: + - .m2/repository + - .gradle/wrapper + - .gradle/caches + +assemble: + stage: assemble + tags: + - docker + except: + - tags + script: | + cd ./moaSig + ./gradlew clean assemble --warning-mode all + artifacts: + when: always + +release: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + needs: + - job: assemble + artifacts: true + when: manual + only: + - master + script: | + echo "Releasing version $VERSION of $LIB_NAME" + echo "Publishing version $VERSION to public EGIZ maven" + cd ./moaSig + ./gradlew release + artifacts: + name: "${CI_PROJECT_NAME}-${CI_COMMIT_SHORT_SHA}-release" + expire_in: never + paths: + - "../release/${VERSION}/moa-spss-${VERSION}.zip" + - "../release/${VERSION}/moa-spss-lib-${VERSION}.zip" diff --git a/README.md b/README.md new file mode 100644 index 0000000..eec4db2 --- /dev/null +++ b/README.md @@ -0,0 +1,85 @@ +# MOA-Signature (MOA-SPSS) + +## Description + +MOA-Signature, which is also called MOA-SPSS provides a Web-Service interface and a library for signature creation and signature verification. This application consists of two parts + +- **Signature generation:** MOA-SS implements signature generation on sever-side for XAdES (XML) and CAdES (CMS) signatures. + +- **Signature verification:** MOA-SP implements signature verification and certificate validation on server-side for XAdES, CAdES, , PAdES, and ASiC signatures. + + + +### Building + +The application is build into a Web-application and into a set of jars that can be directly used in another application. The Web application has to be deployed into an application service, like Apache Tomcat + +The project can be build with : + +``` +./gradlew clean assemble +``` + +The resulting `war` file can be deployed into an application server + +Set Java System-Property _**-Dmoa.spss.server.configuration**=/path/to/configuration..._ to set the configuration for this application + + + +### Configuration + +A default configuration is located at _/release-infos/handbook/conf/_ + + + +## Generate a Release Package + +The full release packages for will be automatically assembled by gradle build-process. Before release build, all release related information have to added into infos folder. To add release informations follow the steps outlined below. + +Add a file with release informations to: +``` +./release-infos/readme_{version}.txt +``` + +Add, remove, or update the application description in the handbook + +``` +modify: ./release-infos/handbook/ +``` + +Generate a release package with: + + +``` +./gradlew release +``` + +The full release package will be located add +``` +./moaSig/releases/* +``` + +where + +- _moa-spss-lib-..._ is the package with the library and dependencies +- _moa-spss----_ is the Web application with configuration and additional informations + + + +## Changelog + +**v3.1.4** + +- Mindestanforderung für JAVA 8 +- Anpassungen an der TSL Implementierung + - Updates von Bibliotheken zur Stabilitätsverbesserung + - TrustStore Update in der Beispielkonfiguration + +**v3.1.3** + + - Anpassungen an der TSL Implementierung + + - Updates von Bibliotheken zur Stabilitätsverbesserung + - TrustStore Update in der Beispielkonfiguration + + \ No newline at end of file diff --git a/moaSig/README.md b/moaSig/README.md deleted file mode 100644 index eec4db2..0000000 --- a/moaSig/README.md +++ /dev/null @@ -1,85 +0,0 @@ -# MOA-Signature (MOA-SPSS) - -## Description - -MOA-Signature, which is also called MOA-SPSS provides a Web-Service interface and a library for signature creation and signature verification. This application consists of two parts - -- **Signature generation:** MOA-SS implements signature generation on sever-side for XAdES (XML) and CAdES (CMS) signatures. - -- **Signature verification:** MOA-SP implements signature verification and certificate validation on server-side for XAdES, CAdES, , PAdES, and ASiC signatures. - - - -### Building - -The application is build into a Web-application and into a set of jars that can be directly used in another application. The Web application has to be deployed into an application service, like Apache Tomcat - -The project can be build with : - -``` -./gradlew clean assemble -``` - -The resulting `war` file can be deployed into an application server - -Set Java System-Property _**-Dmoa.spss.server.configuration**=/path/to/configuration..._ to set the configuration for this application - - - -### Configuration - -A default configuration is located at _/release-infos/handbook/conf/_ - - - -## Generate a Release Package - -The full release packages for will be automatically assembled by gradle build-process. Before release build, all release related information have to added into infos folder. To add release informations follow the steps outlined below. - -Add a file with release informations to: -``` -./release-infos/readme_{version}.txt -``` - -Add, remove, or update the application description in the handbook - -``` -modify: ./release-infos/handbook/ -``` - -Generate a release package with: - - -``` -./gradlew release -``` - -The full release package will be located add -``` -./moaSig/releases/* -``` - -where - -- _moa-spss-lib-..._ is the package with the library and dependencies -- _moa-spss----_ is the Web application with configuration and additional informations - - - -## Changelog - -**v3.1.4** - -- Mindestanforderung für JAVA 8 -- Anpassungen an der TSL Implementierung - - Updates von Bibliotheken zur Stabilitätsverbesserung - - TrustStore Update in der Beispielkonfiguration - -**v3.1.3** - - - Anpassungen an der TSL Implementierung - - - Updates von Bibliotheken zur Stabilitätsverbesserung - - TrustStore Update in der Beispielkonfiguration - - \ No newline at end of file diff --git a/moaSig/settings.gradle b/moaSig/settings.gradle index 222a5bd..86077eb 100644 --- a/moaSig/settings.gradle +++ b/moaSig/settings.gradle @@ -1,2 +1 @@ - include "common", "moa-sig", "moa-sig-lib", "moa-asic" -- cgit v1.2.3