From e27842fb9166bc53c86165fbfbe3c12cdf80002b Mon Sep 17 00:00:00 2001 From: Nipuna Fernando Date: Fri, 6 Dec 2024 10:04:17 +0530 Subject: [PATCH] Add trigger model to the distribution --- ballerina/build.gradle | 57 +++++++++++++----------------------------- 1 file changed, 17 insertions(+), 40 deletions(-) diff --git a/ballerina/build.gradle b/ballerina/build.gradle index 719b491d8e..a2b39ee285 100644 --- a/ballerina/build.gradle +++ b/ballerina/build.gradle @@ -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/" + } } } }