From e940352367f42efd92dea49eccb22e97f9ee041c Mon Sep 17 00:00:00 2001 From: Jean-Pierre Portier Date: Thu, 23 May 2024 15:13:17 +0200 Subject: [PATCH] ci: snippets compilation --- .github/workflows/compilation.yaml | 21 +++++++ compile.sh | 4 ++ snippets/pom.xml | 94 ++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 .github/workflows/compilation.yaml create mode 100755 compile.sh create mode 100644 snippets/pom.xml diff --git a/.github/workflows/compilation.yaml b/.github/workflows/compilation.yaml new file mode 100644 index 0000000..4962009 --- /dev/null +++ b/.github/workflows/compilation.yaml @@ -0,0 +1,21 @@ +name: Compilation + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + - name: Building + run: | + ./compile.sh + diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..dcab5fa --- /dev/null +++ b/compile.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +(cd snippets && mvn clean spotless:apply compile) + diff --git a/snippets/pom.xml b/snippets/pom.xml new file mode 100644 index 0000000..0605658 --- /dev/null +++ b/snippets/pom.xml @@ -0,0 +1,94 @@ + + + 4.0.0 + + com.sinch.sdk.archetypes + sinch-java-sdk-client-snippets + 1.0-SNAPSHOT + jar + Sinch Java SDK Client Snippets + + + [1.0.0,) + 21 + 21 + 3.8.0 + UTF-8 + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.2.0 + + + add-sources + generate-sources + + add-source + + + + . + + + + + + + + + com.diffplug.spotless + spotless-maven-plugin + 2.40.0 + + + + + + **/*.java + + + + 1.22.0 + + true + + + + + true + 2 + + + + + + + + + verify + + check + + + + + + + + + + + com.sinch.sdk + sinch-sdk-java + ${sinch.sdk.java.version} + + + + +