Skip to content

Commit

Permalink
Merge pull request #1046 from DimuthuMadushan/master
Browse files Browse the repository at this point in the history
Optimize Build Script to Skip Docker Tasks when Using the -x test Flag
  • Loading branch information
DimuthuMadushan authored Sep 12, 2023
2 parents 8c3c5cb + 81f988e commit 5d35a5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.8.0-20230726-145300-b2bdf796"
distribution-version = "2201.8.0-20230830-220400-8a7556d8"

[[package]]
org = "ballerina"
Expand Down
6 changes: 4 additions & 2 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ test.dependsOn startLdapServer
test.dependsOn ":${packageName}-native:build"

build.dependsOn "generatePomFileForMavenPublication"
build.finalizedBy stopLdapServer
build.dependsOn startLdapServer
if (!project.gradle.startParameter.excludedTaskNames.contains('test')) {
build.finalizedBy stopLdapServer
build.dependsOn startLdapServer
}
build.dependsOn ":${packageName}-native:build"

publishToMavenLocal.dependsOn build
Expand Down

0 comments on commit 5d35a5e

Please sign in to comment.