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 108108 <dependency >
109109 <groupId >com.github.stefanbirkner</groupId >
110110 <artifactId >system-lambda</artifactId >
111+ <scope >test</scope >
111112 </dependency >
112113 <dependency >
113114 <groupId >org.wiremock</groupId >
114115 <artifactId >wiremock</artifactId >
116+ <scope >test</scope >
115117 </dependency >
116118 </dependencies >
117119 <build >
Original file line number Diff line number Diff line change 11FROM registry.access.redhat.com/ubi8/openjdk-21@sha256:5ab904e6262629fca79d6f65fa859bfa376405522d2f660bdbfaaae2742586f1 AS builder
22
3+ USER root
4+ RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y git
5+
6+ USER 185
37WORKDIR /work
48COPY ./ .
59
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
716
817FROM registry.access.redhat.com/ubi8/openjdk-21-runtime@sha256:0a8cf41082f11f5bc56bd9438851e54593e17051df49592e953fb59376c7d539
918WORKDIR /work/
Original file line number Diff line number Diff line change 4444 <artifactId >commons-text</artifactId >
4545 <version >${version.commons-text} </version >
4646 </dependency >
47+ <dependency >
48+ <groupId >io.quarkus</groupId >
49+ <artifactId >quarkus-info</artifactId >
50+ </dependency >
4751 <dependency >
4852 <groupId >org.jboss.pnc</groupId >
4953 <artifactId >pnc-api</artifactId >
6266 <version >${version.lombok} </version >
6367 <scope >provided</scope >
6468 </dependency >
65- <dependency >
66- <groupId >io.quarkus</groupId >
67- <artifactId >quarkus-info</artifactId >
68- </dependency >
6969 <dependency >
7070 <groupId >io.quarkus</groupId >
7171 <artifactId >quarkus-junit5</artifactId >
Original file line number Diff line number Diff line change 11package com .redhat .hacbs .driver .util ;
22
3- import jakarta .enterprise .context .RequestScoped ;
3+ import jakarta .enterprise .context .ApplicationScoped ;
44import jakarta .inject .Inject ;
55
66import org .eclipse .microprofile .config .inject .ConfigProperty ;
99import io .quarkus .info .BuildInfo ;
1010import io .quarkus .info .GitInfo ;
1111
12- @ RequestScoped
12+ @ ApplicationScoped
1313public class Info {
1414
1515 @ ConfigProperty (name = "quarkus.application.name" )
You can’t perform that action at this time.
0 commit comments