Update to Java 11

This commit is contained in:
Derry Hamilton 2020-07-02 09:23:41 +01:00
parent f3538a09f9
commit f963d8bdcf
3 changed files with 9 additions and 8 deletions

View file

@ -1,14 +1,16 @@
FROM centos:centos7 as builder
FROM centos:centos8 as builder
RUN yum -y install epel-release java-11-openjdk-devel
RUN yum -y groupinstall 'Development Tools'
RUN yum -y install git maven
RUN alternatives --set javac /usr/lib/jvm/java-11-openjdk-11.0.7.10-1.el8_1.x86_64/bin/javac
RUN alternatives --set java /usr/lib/jvm/java-11-openjdk-11.0.7.10-1.el8_1.x86_64/bin/java
RUN git clone --single-branch --branch dev https://github.com/rasilon/ujetl.git
RUN cd ujetl && mvn -e package
RUN cd ujetl && JAVA_HOME=/usr/lib/jvm/java-11 mvn -e package
FROM openjdk:8-alpine as runner
FROM openjdk:11-alpine as runner
LABEL maintainer="Derry Hamilton <derryh@rasilon.net>"
RUN apk update && apk upgrade && apk add bash

View file

@ -6,7 +6,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<groupId>com.rasilon.ujetl</groupId>
<artifactId>CopyingApp</artifactId>
<packaging>jar</packaging>
<version>2.2.4</version>
<version>2.3.0</version>
<name>uJETL</name>
<url>https://github.com/rasilon/ujetl</url>
<properties>
@ -83,10 +83,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<version>3.8.0</version>
<configuration>
<source>11</source>
<target>11</target>
<release>11</release>
</configuration>
</plugin>
<plugin>

View file

@ -1,6 +1,6 @@
Summary: Java app to facilitate moving data between databases.
Name: uJETL
Version: 2.2.4
Version: 2.3.0
Release: 1
Group: Applications/Database
License: All rights reserved.