File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed
src/main/java/com/redhat/hacbs/driver/util Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 108
108
<dependency >
109
109
<groupId >com.github.stefanbirkner</groupId >
110
110
<artifactId >system-lambda</artifactId >
111
+ <scope >test</scope >
111
112
</dependency >
112
113
<dependency >
113
114
<groupId >org.wiremock</groupId >
114
115
<artifactId >wiremock</artifactId >
116
+ <scope >test</scope >
115
117
</dependency >
116
118
</dependencies >
117
119
<build >
Original file line number Diff line number Diff line change 1
1
FROM registry.access.redhat.com/ubi8/openjdk-21@sha256:5ab904e6262629fca79d6f65fa859bfa376405522d2f660bdbfaaae2742586f1 AS builder
2
2
3
+ USER root
4
+ RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y git
5
+
6
+ USER 185
3
7
WORKDIR /work
4
8
COPY ./ .
5
9
6
- RUN mvn -V -B package -pl cli -am -DskipTests
10
+ # Quarkus GitInfo causes injection failure if there isn't a git commit to use.
11
+ RUN git init && \
12
+ git config user.email "
[email protected] " && \
13
+ git config user.name "HACBS" && \
14
+ git add cli && git commit -m "CLI" -a && \
15
+ mvn -V -B package -pl cli -am -DskipTests
7
16
8
17
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime@sha256:0a8cf41082f11f5bc56bd9438851e54593e17051df49592e953fb59376c7d539
9
18
WORKDIR /work/
Original file line number Diff line number Diff line change 44
44
<artifactId >commons-text</artifactId >
45
45
<version >${version.commons-text} </version >
46
46
</dependency >
47
+ <dependency >
48
+ <groupId >io.quarkus</groupId >
49
+ <artifactId >quarkus-info</artifactId >
50
+ </dependency >
47
51
<dependency >
48
52
<groupId >org.jboss.pnc</groupId >
49
53
<artifactId >pnc-api</artifactId >
62
66
<version >${version.lombok} </version >
63
67
<scope >provided</scope >
64
68
</dependency >
65
- <dependency >
66
- <groupId >io.quarkus</groupId >
67
- <artifactId >quarkus-info</artifactId >
68
- </dependency >
69
69
<dependency >
70
70
<groupId >io.quarkus</groupId >
71
71
<artifactId >quarkus-junit5</artifactId >
Original file line number Diff line number Diff line change 1
1
package com .redhat .hacbs .driver .util ;
2
2
3
- import jakarta .enterprise .context .RequestScoped ;
3
+ import jakarta .enterprise .context .ApplicationScoped ;
4
4
import jakarta .inject .Inject ;
5
5
6
6
import org .eclipse .microprofile .config .inject .ConfigProperty ;
9
9
import io .quarkus .info .BuildInfo ;
10
10
import io .quarkus .info .GitInfo ;
11
11
12
- @ RequestScoped
12
+ @ ApplicationScoped
13
13
public class Info {
14
14
15
15
@ ConfigProperty (name = "quarkus.application.name" )
You can’t perform that action at this time.
0 commit comments