Skip to content

Commit c3262a6

Browse files
authored
Add new java-quarkus devfile version with java 21 as default (#370)
Signed-off-by: ivinokur <ivinokur@redhat.com>
1 parent 1a7f8d1 commit c3262a6

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
schemaVersion: 2.2.0
2+
metadata:
3+
name: java-quarkus
4+
displayName: Quarkus Java
5+
description: Java application using Quarkus and OpenJDK 21
6+
icon: https://design.jboss.org/quarkus/logo/final/SVG/quarkus_icon_rgb_default.svg
7+
tags:
8+
- Java
9+
- Quarkus
10+
projectType: Quarkus
11+
language: Java
12+
version: 1.5.0
13+
website: https://quarkus.io
14+
starterProjects:
15+
- name: community
16+
zip:
17+
location: https://code.quarkus.io/d?e=io.quarkus%3Aquarkus-resteasy&e=io.quarkus%3Aquarkus-micrometer&e=io.quarkus%3Aquarkus-smallrye-health&e=io.quarkus%3Aquarkus-openshift&cn=devfile&j=21
18+
- name: redhat-product
19+
zip:
20+
location: https://code.quarkus.redhat.com/d?e=io.quarkus%3Aquarkus-resteasy&e=io.quarkus%3Aquarkus-smallrye-health&e=io.quarkus%3Aquarkus-openshift&j=21
21+
components:
22+
- name: tools
23+
container:
24+
image: registry.access.redhat.com/ubi8/openjdk-21:1.19-1
25+
args: ['tail', '-f', '/dev/null']
26+
memoryLimit: 1024Mi ## default app nowhere needs this but leaving room for expansion.
27+
mountSources: true
28+
volumeMounts:
29+
- name: m2
30+
path: /home/user/.m2
31+
endpoints:
32+
- name: https-quarkus
33+
targetPort: 8080
34+
protocol: https
35+
- exposure: none
36+
name: debug
37+
targetPort: 5858
38+
env:
39+
- name: DEBUG_PORT
40+
value: '5858'
41+
- name: m2
42+
volume:
43+
size: 3Gi
44+
commands:
45+
- id: init-compile
46+
exec:
47+
component: tools
48+
commandLine: './mvnw -Dmaven.repo.local=/home/user/.m2/repository compile'
49+
workingDir: ${PROJECT_SOURCE}
50+
- id: dev-run
51+
exec:
52+
component: tools
53+
commandLine: './mvnw -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager'
54+
hotReloadCapable: true
55+
group:
56+
kind: run
57+
isDefault: true
58+
workingDir: ${PROJECT_SOURCE}
59+
- id: dev-debug
60+
exec:
61+
component: tools
62+
commandLine: './mvnw -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Ddebug=${DEBUG_PORT}'
63+
hotReloadCapable: true
64+
group:
65+
kind: debug
66+
isDefault: true
67+
workingDir: ${PROJECT_SOURCE}
68+
events:
69+
postStart:
70+
- init-compile

stacks/java-quarkus/stack.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ versions:
77
- version: 1.3.1
88
- version: 1.4.0
99
- version: 1.4.1
10+
- version: 1.5.0
1011
default: true # should have one and only one default version

0 commit comments

Comments
 (0)