Skip to content

Commit

Permalink
Merge pull request #74 from ballerina-platform/add-platform
Browse files Browse the repository at this point in the history
Make platform variable configurable
  • Loading branch information
xlight05 authored Mar 21, 2022
2 parents b5fb323 + 53454ac commit 80252d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class BallerinaExtension {
String testCoverageParam
String packageOrganization
String customTomlVersion
String platform
}

class BallerinaPlugin implements Plugin<Project> {
Expand Down Expand Up @@ -168,7 +169,6 @@ class BallerinaPlugin implements Plugin<Project> {
} else {
organisation = project.extensions.ballerina.packageOrganization
}

if (project.hasProperty('groups')) {
groupParams = "--groups ${project.findProperty('groups')}"
}
Expand Down Expand Up @@ -225,6 +225,10 @@ class BallerinaPlugin implements Plugin<Project> {
} else {
balaVersion = project.extensions.ballerina.customTomlVersion
}

if (project.extensions.ballerina.platform != null) {
platform = project.extensions.ballerina.platform
}

if (project.extensions.ballerina.packageOrganization == null) {
packageOrg = 'ballerina'
Expand Down

0 comments on commit 80252d4

Please sign in to comment.