Skip to content

Commit

Permalink
Fix build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Jul 4, 2024
1 parent 2b21285 commit 03be34e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
GRADLE_CLI_OPTS: ""
run: "chmod +x ./gradlew && ./gradlew ${GRADLE_CLI_OPTS} -Pversion=${API_VERSION} build jacocoTestReport"
- name: Build and push Docker images
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags')
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/cds' || startsWith(github.ref, 'refs/tags')
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ buildscript {
plugins {
id "java"
id "org.springframework.boot" version "3.3.1"
id "org.springframework.boot.aot" version "3.3.1"
id "idea"
id "com.adarshr.test-logger" version "4.0.0"
}
Expand Down Expand Up @@ -39,7 +40,7 @@ configurations {

idea {
module {
testSourceDirs += file('src/inttest/java')
testSources = files(file("src/test/java"), file("src/inttest/java"))
}
}

Expand All @@ -66,7 +67,7 @@ configurations {
}


task inttest(type: Test) {
tasks.register('inttest', Test) {
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = "Runs the integration tests."

Expand Down Expand Up @@ -105,13 +106,14 @@ configurations {
codacy
}

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

configurations.all {
configurations.configureEach {
// Cache -SNAPSHOT for 60 seconds only
resolutionStrategy.cacheChangingModulesFor 60, 'seconds'
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ spring:
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: false
profiles:
active: ${API_PROFILE}
servlet:
multipart:
max-file-size: 350MB
Expand Down

0 comments on commit 03be34e

Please sign in to comment.