Skip to content

Commit

Permalink
Merge pull request #5870 from nipunayf/add-trigger-model
Browse files Browse the repository at this point in the history
Add trigger model LS extension to the Ballerina distribution
  • Loading branch information
nipunayf authored Dec 6, 2024
2 parents 9bd0174 + e27842f commit 82a44b4
Showing 1 changed file with 17 additions and 40 deletions.
57 changes: 17 additions & 40 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -248,47 +248,24 @@ task copyOtherRepos(type: Copy) {
}
}

/* Architecture Model Generator Artifacts */
/* Language Server Extension Artifacts */
def generatorNames = [
"architecture-model-generator",
"graphql-model-generator",
"flow-model-generator",
"sequence-model-generator",
"trigger-model-generator"
]

configurations.devTools.resolvedConfiguration.resolvedArtifacts.each { artifact ->
def artifactExtractedPath = "${buildDir}/target/extracted-distributions/" + artifact.name + "-zip"
from("${artifactExtractedPath}/architecture-model-generator/libs") {
into "bre/lib/"
}
from("${artifactExtractedPath}/architecture-model-generator/ls-libs") {
into "lib/tools/lang-server/lib/"
}
}

/* GraphQL Model Generator Artifacts */
configurations.devTools.resolvedConfiguration.resolvedArtifacts.each { artifact ->
def artifactExtractedPath = "${buildDir}/target/extracted-distributions/" + artifact.name + "-zip"
from("${artifactExtractedPath}/graphql-model-generator/libs") {
into "bre/lib/"
}
from("${artifactExtractedPath}/graphql-model-generator/ls-libs") {
into "lib/tools/lang-server/lib/"
}
}

/* Flow Model Generator Artifacts */
configurations.devTools.resolvedConfiguration.resolvedArtifacts.each { artifact ->
def artifactExtractedPath = "${buildDir}/target/extracted-distributions/" + artifact.name + "-zip"
from("${artifactExtractedPath}/flow-model-generator/libs") {
into "bre/lib/"
}
from("${artifactExtractedPath}/flow-model-generator/ls-libs") {
into "lib/tools/lang-server/lib/"
}
}

/* Sequence Model Generator Artifacts */
configurations.devTools.resolvedConfiguration.resolvedArtifacts.each { artifact ->
def artifactExtractedPath = "${buildDir}/target/extracted-distributions/" + artifact.name + "-zip"
from("${artifactExtractedPath}/sequence-model-generator/libs") {
into "bre/lib/"
}
from("${artifactExtractedPath}/sequence-model-generator/ls-libs") {
into "lib/tools/lang-server/lib/"
def artifactExtractedPath = "${buildDir}/target/extracted-distributions/${artifact.name}-zip"
generatorNames.each { generatorName ->
from("${artifactExtractedPath}/${generatorName}/libs") {
into "bre/lib/"
}
from("${artifactExtractedPath}/${generatorName}/ls-libs") {
into "lib/tools/lang-server/lib/"
}
}
}
}
Expand Down

0 comments on commit 82a44b4

Please sign in to comment.