File tree 2 files changed +15
-5
lines changed
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ COPY build.gradle .
5
5
COPY settings.gradle .
6
6
COPY gradlew .
7
7
COPY gradle gradle/
8
- RUN ./gradlew build -x spotlessApply -x spotlessCheck -x test -x sonarqube || return 0
8
+ RUN ./gradlew build -x spotlessApply -x spotlessCheck -x test -x sonarqube || return 0
9
9
10
10
# Set the working directory
11
11
WORKDIR /app
Original file line number Diff line number Diff line change @@ -543,12 +543,22 @@ compileJava {
543
543
}
544
544
545
545
task writeVersion {
546
- def propsFile = file(" src/main/resources/version.properties" )
547
- def props = new Properties ()
548
- props. setProperty(" version" , version)
549
- props. store(propsFile. newWriter(), null )
546
+ def propsFile = file(" $projectDir /src/main/resources/version.properties" )
547
+ def propsDir = propsFile. parentFile
548
+
549
+ doLast {
550
+ if (! propsDir. exists()) {
551
+ propsDir. mkdirs()
552
+ }
553
+
554
+ def props = new Properties ()
555
+ props. setProperty(" version" , version)
556
+ props. store(propsFile. newWriter(), null )
557
+ }
550
558
}
551
559
560
+ processResources. dependsOn(writeVersion)
561
+
552
562
swaggerhubUpload {
553
563
// dependsOn = generateOpenApiDocs // Depends on your task generating Swagger docs
554
564
api = " Stirling-PDF" // The name of your API on SwaggerHub
You can’t perform that action at this time.
0 commit comments