-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add jvm maven build * jvm ci
- Loading branch information
Showing
4 changed files
with
255 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: ci-main | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }} | ||
- name: version | ||
run: >- | ||
APP_SHA=$(git rev-parse --short ${GITHUB_SHA}); | ||
APP_REV=$(git rev-list --tags --max-count=1); | ||
APP_TAG=$(git describe --tags ${APP_REV} 2> /dev/null || echo 0.0.0); | ||
APP_VERSION=${APP_TAG}-${APP_SHA}; | ||
echo "APP_SHA=${APP_SHA}" >> ${GITHUB_ENV}; | ||
echo "APP_TAG=${APP_TAG}" >> ${GITHUB_ENV}; | ||
echo "APP_VERSION=${APP_VERSION}" >> ${GITHUB_ENV}; | ||
- name: mvn | ||
run: >- | ||
mvn versions:set | ||
--batch-mode | ||
--file ./engine/pom.xml | ||
--settings ./engine/settings.xml | ||
--define newVersion="${APP_VERSION}"; | ||
mvn clean deploy | ||
--batch-mode | ||
--file ./engine/pom.xml | ||
--settings ./engine/settings.xml | ||
--define app.packages.username="${APP_PACKAGES_USERNAME}" | ||
--define app.packages.password="${APP_PACKAGES_PASSWORD}"; | ||
env: | ||
APP_PACKAGES_USERNAME: ${{ github.actor }} | ||
APP_PACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/build | ||
/build | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>eu.europa.ec.dgc</groupId> | ||
<artifactId>dgc-certlogic</artifactId> | ||
<version>latest</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>dgc-certlogic</name> | ||
<description>European Digital Green Certificate Verifier Service project.</description> | ||
<organization> | ||
<name>T-Systems International GmbH</name> | ||
</organization> | ||
|
||
<properties> | ||
<!-- java --> | ||
<java.version>11</java.version> | ||
<maven.compiler.source>11</maven.compiler.source> | ||
<maven.compiler.target>11</maven.compiler.target> | ||
<!-- charset --> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<!-- dependencies --> | ||
<Versions.kotlin>1.4.32</Versions.kotlin> | ||
<Versions.kotlin_reflect>1.4.32</Versions.kotlin_reflect> | ||
<Versions.kotlinx_coroutines_core>1.5.1</Versions.kotlinx_coroutines_core> | ||
<Versions.jackson_cbor>2.12.3</Versions.jackson_cbor> | ||
<Versions.jackson_kotlin>2.12.0</Versions.jackson_kotlin> | ||
<Versions.jackson_datetype>jackson-datatype-jsr310</Versions.jackson_datetype> | ||
<Versions.appache_commons>2.9.0</Versions.appache_commons> | ||
|
||
<Versions.junit>4.13.1</Versions.junit> | ||
<Versions.junit_jupiter>5.7.1</Versions.junit_jupiter> | ||
<Versions.hamcrest>2.2</Versions.hamcrest> | ||
<Versions.test_version>1.3.0</Versions.test_version> | ||
<Versions.test_ext_version>1.1.2</Versions.test_ext_version> | ||
<Versions.mockito_core>3.9.0</Versions.mockito_core> | ||
<Versions.mockito_kotlin>3.2.0</Versions.mockito_kotlin> | ||
|
||
<!-- license --> | ||
<license.projectName>EU Digital Green Certificate Verifier Service / dgc-certlogic</license.projectName> | ||
<license.inceptionYear>2021</license.inceptionYear> | ||
<license.licenseName>apache_v2</license.licenseName> | ||
<!-- github --> | ||
<github.organization>eu-digital-green-certificates</github.organization> | ||
<github.project>dgc-certlogic-android</github.project> | ||
<!-- sonar --> | ||
</properties> | ||
|
||
<url>https://github.com/eu-digital-green-certificates/dgc-certlogic-android</url> | ||
<ciManagement> | ||
<url>https://github.com/eu-digital-green-certificates/dgc-certlogic-android/actions</url> | ||
</ciManagement> | ||
<issueManagement> | ||
<url>https://github.com/eu-digital-green-certificates/dgc-certlogic-android/issues</url> | ||
</issueManagement> | ||
<scm> | ||
<url>https://github.com/eu-digital-green-certificates/dgc-certlogic-android</url> | ||
</scm> | ||
|
||
<repositories> | ||
<repository> | ||
<id>dgc-github</id> | ||
<url>https://maven.pkg.github.com/${github.organization}/*</url> | ||
</repository> | ||
<repository> | ||
<id>ehd-github</id> | ||
<url>https://maven.pkg.github.com/ehn-dcc-development/*</url> | ||
</repository> | ||
</repositories> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>dgc-github</id> | ||
<url>https://maven.pkg.github.com/${github.organization}/${github.project}</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-stdlib</artifactId> | ||
<version>${Versions.kotlin}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-reflect</artifactId> | ||
<version>${Versions.kotlin_reflect}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlinx</groupId> | ||
<artifactId>kotlinx-coroutines-core</artifactId> | ||
<version>${Versions.kotlinx_coroutines_core}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.dataformat</groupId> | ||
<artifactId>jackson-dataformat-cbor</artifactId> | ||
<version>${Versions.jackson_cbor}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.module</groupId> | ||
<artifactId>jackson-module-kotlin</artifactId> | ||
<version>${Versions.jackson_kotlin}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.datatype</groupId> | ||
<artifactId>jackson-datatype-jsr310</artifactId> | ||
<version>2.12.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>eu.ehn.dcc.certlogic</groupId> | ||
<artifactId>certlogic-kotlin</artifactId> | ||
<version>v0.9.0-kotlin</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
<version>${Versions.appache_commons}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>${Versions.junit}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-api</artifactId> | ||
<version>${Versions.junit_jupiter}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-params</artifactId> | ||
<version>${Versions.junit_jupiter}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-engine</artifactId> | ||
<version>${Versions.junit_jupiter}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest</artifactId> | ||
<version>${Versions.hamcrest}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
<version>${Versions.mockito_core}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito.kotlin</groupId> | ||
<artifactId>mockito-kotlin</artifactId> | ||
<version>${Versions.mockito_kotlin}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-maven-plugin</artifactId> | ||
<version>${Versions.kotlin}</version> | ||
<executions> | ||
<execution> | ||
<id>compile</id> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
</execution> | ||
|
||
<execution> | ||
<id>test-compile</id> | ||
<goals> | ||
<goal>test-compile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<interactiveMode>false</interactiveMode> | ||
<servers> | ||
<server> | ||
<id>dgc-github</id> | ||
<username>${app.packages.username}</username> | ||
<password>${app.packages.password}</password> | ||
</server> | ||
</servers> | ||
</settings> |