Compare commits

..

4 Commits

Author SHA1 Message Date
JW
8594c0c3a2 Update pom 2023-08-22 13:45:55 +02:00
JW
48e03d960e Merge remote-tracking branch 'origin/master' 2023-08-22 13:44:01 +02:00
JW
fe9deac73a Update pom 2023-08-22 13:43:54 +02:00
GitHub Action
f7c67845eb Update version in pom.xml 2023-08-22 11:36:58 +00:00
4 changed files with 33 additions and 9 deletions

View File

@@ -10,12 +10,6 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>API</artifactId>
<properties>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>

20
ensure-java-16 Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
JV=`java -version 2>&1 >/dev/null | head -1`
echo $JV | sed -E 's/^.*version "([^".]*)\.[^"]*".*$/\1/'
if [ "$JV" != 16 ]; then
case "$1" in
install)
echo "Installing SDKMAN..."
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh
sdk version
sdk install java 16.0.1-adpt
;;
use)
echo "must source ~/.sdkman/bin/sdkman-init.sh"
exit 1
;;
esac
fi

View File

@@ -2,9 +2,10 @@ jdk:
- openjdk16
before_install:
- echo "Before Install"
- bash ensure-java-16 install
- ./ensure-java-16 install
install:
- echo "Install"
- if ! bash ensure-java-16 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
- if ! ./ensure-java-16 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
- java -version
- mvn install
# Thanks to https://github.com/jitpack/jitpack.io/issues/4355#issuecomment-744678253

View File

@@ -23,6 +23,15 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>16</source>
<target>16</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>