diff --git a/.drone.yml b/.drone.yml index 8e11bf0..ae38f00 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,7 @@ steps: path: /tmp/cache - name: build_application - image: openjdk:8-jdk + image: openjdk:11-jdk commands: - ./gradlew build -x test diff --git a/Dockerfile b/Dockerfile index 22269a6..d9db510 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jre-alpine +FROM openjdk:11-jre-alpine ENV APPLICATION_USER ktor RUN adduser -D -g '' $APPLICATION_USER diff --git a/build.gradle b/build.gradle index 1dd3d00..f7affed 100644 --- a/build.gradle +++ b/build.gradle @@ -55,9 +55,11 @@ dependencies { kotlin.experimental.coroutines = 'enable' +tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { + kotlinOptions { + jvmTarget = "11" + } +} shadowJar { - baseName = 'output-service-rdb' - classifier = null - version = null } \ No newline at end of file