From b08a0ac24bb542a67e890d5cf483fdd44eff059e Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 12 Oct 2022 12:03:08 +0200 Subject: [PATCH] Add jenkinsfile for pipeline build and dockerfile for build Signed-off-by: brian --- .docker/Dockerfile | 10 +++++++--- build.gradle | 5 +++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 2e8e9a472..483b99544 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -2,9 +2,13 @@ FROM nvidia/cuda:11.4.0-cudnn8-devel-ubuntu20.04 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-11-jdk wget build-essential checkinstall zlib1g-dev libssl-dev git -RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \ - tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \ - ./bootstrap && make && make install +#Build cmake version from source \ +#RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \ +# tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \ +# ./bootstrap && make && make install +RUN wget -nv https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2-linux-x86_64.sh && \ + mkdir /opt/cmake && sh ./cmake-3.24.2-linux-x86_64.sh --skip-license --prefix=/opt/cmake && ln -s /opt/cmake/bin/cmake /usr/bin/cmake && \ + rm cmake-3.24.2-linux-x86_64.sh RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf diff --git a/build.gradle b/build.gradle index ab3337562..cd5911461 100644 --- a/build.gradle +++ b/build.gradle @@ -44,6 +44,7 @@ ext { scalaVersion = "2.12" logger.quiet("Scala main version is set to {}", scalaVersion) + logger.quiet("Running java {}", JavaVersion.current()) } configurations.all { @@ -63,8 +64,8 @@ allprojects { Project proj -> plugins.withType(JavaPlugin) { - sourceCompatibility = 11 - targetCompatibility = 1.8 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_1_8 tasks.withType(JavaCompile) { options.release = 8 }