Skip to content

Commit 0e2e771

Browse files
committed
Add new 1.3.0 version for 'java-springboot', with JDK 17
Signed-off-by: Armel Soro <[email protected]>
1 parent f5a3c2d commit 0e2e771

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
schemaVersion: 2.1.0
2+
metadata:
3+
name: java-springboot
4+
displayName: Spring Boot®
5+
description: Java application using Spring Boot® and OpenJDK 11
6+
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/spring.svg
7+
tags:
8+
- Java
9+
- Spring
10+
projectType: springboot
11+
language: Java
12+
version: 1.3.0
13+
globalMemoryLimit: 2674Mi
14+
starterProjects:
15+
- name: springbootproject
16+
git:
17+
remotes:
18+
origin: "https://github.com/odo-devfiles/springboot-ex.git"
19+
components:
20+
- name: tools
21+
container:
22+
image: registry.access.redhat.com/ubi9/openjdk-17:latest
23+
command: ["tail", "-f", "/dev/null"]
24+
memoryLimit: 768Mi
25+
mountSources: true
26+
endpoints:
27+
- name: http-springboot
28+
targetPort: 8080
29+
- exposure: none
30+
name: debug
31+
targetPort: 5858
32+
volumeMounts:
33+
- name: m2
34+
path: /home/user/.m2
35+
env:
36+
- name: DEBUG_PORT
37+
value: "5858"
38+
- name: m2
39+
volume:
40+
size: 3Gi
41+
commands:
42+
- id: build
43+
exec:
44+
component: tools
45+
workingDir: ${PROJECT_SOURCE}
46+
commandLine: "mvn clean -Dmaven.repo.local=/home/user/.m2/repository package -Dmaven.test.skip=true"
47+
group:
48+
kind: build
49+
isDefault: true
50+
- id: run
51+
exec:
52+
component: tools
53+
workingDir: ${PROJECT_SOURCE}
54+
commandLine: "mvn -Dmaven.repo.local=/home/user/.m2/repository spring-boot:run"
55+
group:
56+
kind: run
57+
isDefault: true
58+
- id: debug
59+
exec:
60+
component: tools
61+
workingDir: ${PROJECT_SOURCE}
62+
commandLine: "java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar"
63+
group:
64+
kind: debug
65+
isDefault: true

stacks/java-springboot/stack.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main
55
versions:
66
- version: 1.2.0
77
default: true # should have one and only one default version
8+
# 1.3.0: with JDK 17
9+
- version: 1.3.0
810
- version: 2.0.0

0 commit comments

Comments
 (0)