Skip to content

Commit 03be34e

Browse files
committed
Fix build.gradle
1 parent 2b21285 commit 03be34e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
GRADLE_CLI_OPTS: ""
2424
run: "chmod +x ./gradlew && ./gradlew ${GRADLE_CLI_OPTS} -Pversion=${API_VERSION} build jacocoTestReport"
2525
- name: Build and push Docker images
26-
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags')
26+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/cds' || startsWith(github.ref, 'refs/tags')
2727
uses: docker/[email protected]
2828
with:
2929
username: ${{ secrets.DOCKER_USERNAME }}

build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ buildscript {
1212
plugins {
1313
id "java"
1414
id "org.springframework.boot" version "3.3.1"
15+
id "org.springframework.boot.aot" version "3.3.1"
1516
id "idea"
1617
id "com.adarshr.test-logger" version "4.0.0"
1718
}
@@ -39,7 +40,7 @@ configurations {
3940

4041
idea {
4142
module {
42-
testSourceDirs += file('src/inttest/java')
43+
testSources = files(file("src/test/java"), file("src/inttest/java"))
4344
}
4445
}
4546

@@ -66,7 +67,7 @@ configurations {
6667
}
6768

6869

69-
task inttest(type: Test) {
70+
tasks.register('inttest', Test) {
7071
group = LifecycleBasePlugin.VERIFICATION_GROUP
7172
description = "Runs the integration tests."
7273

@@ -105,13 +106,14 @@ configurations {
105106
codacy
106107
}
107108

108-
task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
109+
tasks.register('sendCoverageToCodacy', JavaExec) {
110+
dependsOn jacocoTestReport
109111
mainClass = "com.codacy.CodacyCoverageReporter"
110112
classpath = configurations.codacy
111113
args = ["report", "-l", "Java", "-r", "${buildDir}/reports/jacoco/test/jacocoTestReport.xml"]
112114
}
113115

114-
configurations.all {
116+
configurations.configureEach {
115117
// Cache -SNAPSHOT for 60 seconds only
116118
resolutionStrategy.cacheChangingModulesFor 60, 'seconds'
117119
}

src/main/resources/config/application.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ spring:
127127
jackson:
128128
serialization:
129129
WRITE_DATES_AS_TIMESTAMPS: false
130+
profiles:
131+
active: ${API_PROFILE}
130132
servlet:
131133
multipart:
132134
max-file-size: 350MB

0 commit comments

Comments
 (0)