Skip to content

Commit

Permalink
Merge pull request #18 from niveathika/main
Browse files Browse the repository at this point in the history
Revert update default code coverage param
  • Loading branch information
aashikam authored Jun 2, 2021
2 parents 71e5b2d + 43ad983 commit 3fbaece
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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=0.8.3
version=0.8.4
13 changes: 6 additions & 7 deletions src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ class BallerinaPlugin implements Plugin<Project> {
def needPublishToLocalCentral = false
def packageOrg = ''

if (project.extensions.ballerina.packageOrganization == null) {
packageOrg = 'ballerina'
} else {
packageOrg = project.extensions.ballerina.packageOrganization
}

if (project.version.matches(project.ext.timestampedVersionRegex)) {
def splitVersion = project.version.split('-')
if (splitVersion.length > 3) {
Expand Down Expand Up @@ -173,7 +167,7 @@ class BallerinaPlugin implements Plugin<Project> {
}
if (graph.hasTask(":${packageName}-ballerina:test")) {
if (project.extensions.ballerina.testCoverageParam == null) {
testParams = "--code-coverage --coverage-format=xml --includes=org.ballerinalang.stdlib.${packageName}.*:${packageOrg}.${packageName}.*"
testParams = "--code-coverage --coverage-format=xml --includes=org.ballerinalang.stdlib.${packageName}.*:ballerina.${packageName}.*"
} else {
testParams = project.extensions.ballerina.testCoverageParam
}
Expand All @@ -194,6 +188,11 @@ class BallerinaPlugin implements Plugin<Project> {
String distributionBinPath = project.projectDir.absolutePath + "/build/target/extracted-distributions/jballerina-tools-zip/jballerina-tools-${project.extensions.ballerina.langVersion}/bin"
String packageName = project.extensions.ballerina.module

if (project.extensions.ballerina.packageOrganization == null) {
packageOrg = 'ballerina'
} else {
packageOrg = project.extensions.ballerina.packageOrganization
}
if (needBuildWithTest) {
project.exec {
workingDir project.projectDir
Expand Down

0 comments on commit 3fbaece

Please sign in to comment.