Compare commits

..

12 Commits

Author SHA1 Message Date
JW
e6089a99a1 Update pom 2023-08-22 13:54:01 +02:00
GitHub Action
7e77b06b93 Update version in pom.xml 2023-08-22 11:47:12 +00:00
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
JW
55a04b2439 Update pom 2023-08-22 13:35:51 +02:00
JW
9fdab77e5b Update pom 2023-08-22 13:30:46 +02:00
JW
2d6333a817 Update jitpack file 2023-08-22 13:18:13 +02:00
Jacek Wolniewicz
dd0dcb43d2 Merge remote-tracking branch 'origin/master' 2023-08-18 01:41:43 +02:00
Jacek Wolniewicz
77ac427b84 Fix maven 2023-08-18 01:41:35 +02:00
GitHub Action
d2999147a4 Update version in pom.xml 2023-08-17 23:18:12 +00:00
5 changed files with 58 additions and 15 deletions

View File

@@ -10,14 +10,16 @@
<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>
<artifactId>protobuf-java</artifactId>
<version>3.24.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>kr.motd.maven</groupId>

View File

@@ -13,8 +13,6 @@
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
@@ -26,6 +24,18 @@
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.24.1</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

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.2-open
;;
use)
echo "must source ~/.sdkman/bin/sdkman-init.sh"
exit 1
;;
esac
fi

View File

@@ -1,2 +1,10 @@
jdk:
- openjdk16
before_install:
- echo "Before Install"
- bash ensure-java-16 install
install:
- echo "Install"
- if ! bash ensure-java-16 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
- java -version
- mvn install

15
pom.xml
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>
@@ -77,12 +86,6 @@
<version>1.18.22</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.8.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>