File tree 2 files changed +5
-14
lines changed
2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 1
- FROM gradle:7.5.1 -jdk17 AS builder
1
+ FROM gradle:8.9.0 -jdk17 AS builder
2
2
COPY --chown=gradle:gradle . /home/gradle/src
3
3
WORKDIR /home/gradle/src
4
- RUN gradle downloadNewrelic && gradle unzipNewrelic
4
+ RUN apt-get update && apt-get install -y unzip curl
5
+ RUN curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-java.zip \
6
+ && unzip newrelic-java.zip
5
7
RUN gradle bootJar --no-daemon
6
8
7
9
FROM amazoncorretto:17-alpine
Original file line number Diff line number Diff line change @@ -34,15 +34,4 @@ jacocoTestReport {
34
34
xml. required = true
35
35
xml. outputLocation = file(" $rootDir /reports/coverage.xml" )
36
36
}
37
- }
38
-
39
- task downloadNewrelic (type : Download ) {
40
- mkdir ' newrelic'
41
- src ' https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-java.zip'
42
- dest file(' newrelic' )
43
- }
44
-
45
- task unzipNewrelic (type : Copy ) {
46
- from zipTree(file(' newrelic/newrelic-java.zip' ))
47
- into rootDir
48
- }
37
+ }
You can’t perform that action at this time.
0 commit comments