Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc0499d

Browse files
committed
Upgrade to Java 15
1 parentd47e38e commitfc0499d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

‎build.gradle‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ apply from: "gradle/dependencies.gradle"
1414

1515
allprojects {
1616
// Apply the java plugin to add support for Java
17-
applyplugin:'java'
17+
applyplugin:'java-library'
1818
applyplugin:'idea'
1919
applyplugin:'eclipse'
2020
applyplugin:'maven-publish'
@@ -23,8 +23,8 @@ allprojects {
2323
group='com.stubbornjava.StubbornJava'
2424
version='0.0.0-SNAPSHOT'
2525

26-
sourceCompatibility=1.8
27-
targetCompatibility=1.8
26+
sourceCompatibility=15
27+
targetCompatibility=15
2828

2929
sourceSets {
3030
main {
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
FROMopenjdk:8-jdk-alpine AS builder
1+
FROMadoptopenjdk/openjdk15:alpine-jre AS builder
22

3-
# ----
4-
# Install Maven
3+
# We will eventually need more things here
54
RUN apk add --no-cache curl tar bash
65

76
RUN mkdir -p /app
@@ -11,9 +10,9 @@ COPY build/libs/ /app/libs
1110

1211
# Using multi build steps here to keep container as small as possible
1312
# Eventually we may add more tooling above
14-
FROMopenjdk:8-jre-alpine
13+
FROMadoptopenjdk/openjdk15:alpine-jre
1514
RUN mkdir -p /app
1615
WORKDIR /app
1716
COPY --from=builder /app/libs /app/libs
1817
COPY docker/entrypoint.sh /app/entrypoint.sh
19-
CMD ["/usr/bin/java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-cp","libs/*","com.stubbornjava.webapp.StubbornJavaWebApp"]
18+
CMD ["/usr/bin/java","-cp","libs/*","com.stubbornjava.webapp.StubbornJavaWebApp"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp