Skip to content

Commit

Permalink
Merge pull request #124 from MohamedSabthar/dist-path
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisaruGuruge authored Dec 5, 2023
2 parents e52d699 + 3048523 commit 0e4fb14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=io.ballerina
version=2.1.9-SNAPSHOT
version=2.2.0-SNAPSHOT
5 changes: 4 additions & 1 deletion src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class BallerinaPlugin implements Plugin<Project> {
def graalvmFlag = ''
def buildOnDocker = false
def ballerinaDockerTag = ''
def distributionBinPath = project.projectDir.absolutePath + "/build/jballerina-tools-${ballerinaExtension.langVersion}/bin"
def distributionBinPath = ''

if (project.version.matches(project.ext.timestampedVersionRegex)) {
def splitVersion = project.version.split('-')
Expand Down Expand Up @@ -223,6 +223,9 @@ class BallerinaPlugin implements Plugin<Project> {
println("[Warning] disabled code coverage: running GraalVM tests")
graalvmFlag = '--graalvm'
}
if (!ballerinaExtension.isConnector) {
distributionBinPath = project.projectDir.absolutePath + "/build/jballerina-tools-${ballerinaExtension.langVersion}/bin"
}

project.gradle.taskGraph.whenReady { graph ->
if (!(project.hasProperty('disable') || project.hasProperty('groups')) &&
Expand Down

0 comments on commit 0e4fb14

Please sign in to comment.