-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
763 additions
and
763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
[package] | ||
distribution = "2201.8.4" | ||
org = "ballerinax" | ||
name = "docusign.dsadmin" | ||
version = "2.0.0" | ||
license = ["Apache-2.0"] | ||
authors = ["Ballerina"] | ||
keywords = ["eSignature", "Cost/Freemium", "Administration", "Admin API", "Collaboration", "Digital Signature"] | ||
icon = "icon.png" | ||
repository = "https://github.com/ballerina-platform/module-ballerinax-docusign" | ||
|
||
[build-options] | ||
observabilityIncluded = true | ||
|
||
[platform.java17] | ||
graalvmCompatible = true | ||
[package] | ||
distribution = "2201.8.4" | ||
org = "ballerinax" | ||
name = "docusign.dsadmin" | ||
version = "2.0.0" | ||
license = ["Apache-2.0"] | ||
authors = ["Ballerina"] | ||
keywords = ["eSignature", "Cost/Freemium", "Administration", "Admin API", "Collaboration", "Digital Signature"] | ||
icon = "icon.png" | ||
repository = "https://github.com/ballerina-platform/module-ballerinax-docusign" | ||
|
||
[build-options] | ||
observabilityIncluded = true | ||
|
||
[platform.java17] | ||
graalvmCompatible = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,81 @@ | ||
/* | ||
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import org.apache.tools.ant.taskdefs.condition.Os | ||
|
||
plugins { | ||
id 'io.ballerina.plugin' | ||
} | ||
|
||
description = 'DocuSign - Ballerina' | ||
|
||
def packageName = "docusign.dsadmin" | ||
def packageOrg = "ballerinax" | ||
def tomlVersion = stripBallerinaExtensionVersion("${project.version}") | ||
def ballerinaTomlFilePlaceHolder = new File("${project.rootDir}/build-config/resources/Ballerina.toml") | ||
def ballerinaTomlFile = new File("$project.projectDir/Ballerina.toml") | ||
|
||
def stripBallerinaExtensionVersion(String extVersion) { | ||
if (extVersion.matches(project.ext.timestampedVersionRegex)) { | ||
def splitVersion = extVersion.split('-') | ||
if (splitVersion.length > 3) { | ||
def strippedValues = splitVersion[0..-4] | ||
return strippedValues.join('-') | ||
} else { | ||
return extVersion | ||
} | ||
} else { | ||
return extVersion.replace("${project.ext.snapshotVersion}", "") | ||
} | ||
} | ||
|
||
ballerina { | ||
packageOrganization = packageOrg | ||
module = packageName | ||
testCoverageParam = "--code-coverage --coverage-format=xml" | ||
isConnector = true | ||
platform = "any" | ||
} | ||
|
||
task updateTomlFiles { | ||
doLast { | ||
def newBallerinaToml = ballerinaTomlFilePlaceHolder.text.replace("@project.version@", project.version) | ||
newBallerinaToml = newBallerinaToml.replace("@toml.version@", tomlVersion) | ||
ballerinaTomlFile.text = newBallerinaToml | ||
} | ||
} | ||
|
||
task commitTomlFiles { | ||
doLast { | ||
project.exec { | ||
ignoreExitValue true | ||
if (Os.isFamily(Os.FAMILY_WINDOWS)) { | ||
commandLine 'cmd', '/c', "git commit -m \"[Automated] Update the toml files\" Ballerina.toml Dependencies.toml" | ||
} else { | ||
commandLine 'sh', '-c', "git commit -m '[Automated] Update the toml files' Ballerina.toml Dependencies.toml" | ||
} | ||
} | ||
} | ||
} | ||
|
||
clean { | ||
delete 'build' | ||
} | ||
|
||
publishToMavenLocal.dependsOn build | ||
publish.dependsOn build | ||
/* | ||
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import org.apache.tools.ant.taskdefs.condition.Os | ||
|
||
plugins { | ||
id 'io.ballerina.plugin' | ||
} | ||
|
||
description = 'DocuSign - Ballerina' | ||
|
||
def packageName = "docusign.dsadmin" | ||
def packageOrg = "ballerinax" | ||
def tomlVersion = stripBallerinaExtensionVersion("${project.version}") | ||
def ballerinaTomlFilePlaceHolder = new File("${project.rootDir}/build-config/resources/Ballerina.toml") | ||
def ballerinaTomlFile = new File("$project.projectDir/Ballerina.toml") | ||
|
||
def stripBallerinaExtensionVersion(String extVersion) { | ||
if (extVersion.matches(project.ext.timestampedVersionRegex)) { | ||
def splitVersion = extVersion.split('-') | ||
if (splitVersion.length > 3) { | ||
def strippedValues = splitVersion[0..-4] | ||
return strippedValues.join('-') | ||
} else { | ||
return extVersion | ||
} | ||
} else { | ||
return extVersion.replace("${project.ext.snapshotVersion}", "") | ||
} | ||
} | ||
|
||
ballerina { | ||
packageOrganization = packageOrg | ||
module = packageName | ||
testCoverageParam = "--code-coverage --coverage-format=xml" | ||
isConnector = true | ||
platform = "any" | ||
} | ||
|
||
task updateTomlFiles { | ||
doLast { | ||
def newBallerinaToml = ballerinaTomlFilePlaceHolder.text.replace("@project.version@", project.version) | ||
newBallerinaToml = newBallerinaToml.replace("@toml.version@", tomlVersion) | ||
ballerinaTomlFile.text = newBallerinaToml | ||
} | ||
} | ||
|
||
task commitTomlFiles { | ||
doLast { | ||
project.exec { | ||
ignoreExitValue true | ||
if (Os.isFamily(Os.FAMILY_WINDOWS)) { | ||
commandLine 'cmd', '/c', "git commit -m \"[Automated] Update the toml files\" Ballerina.toml Dependencies.toml" | ||
} else { | ||
commandLine 'sh', '-c', "git commit -m '[Automated] Update the toml files' Ballerina.toml Dependencies.toml" | ||
} | ||
} | ||
} | ||
} | ||
|
||
clean { | ||
delete 'build' | ||
} | ||
|
||
publishToMavenLocal.dependsOn build | ||
publish.dependsOn build |
Oops, something went wrong.