File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ description = 'Ballerina - Regex Ballerina Generator'
2121
2222def packageName = " regex"
2323def packageOrg = " ballerina"
24+ def platform = " java11"
2425def snapshotVersion = " -SNAPSHOT"
2526def tomlVersion = project. version. replace(" ${ snapshotVersion} " , " " )
2627def ballerinaConfigFile = new File (" $project . projectDir /Ballerina.toml" )
@@ -149,9 +150,12 @@ task ballerinaBuild {
149150 commandLine ' sh' , ' -c' , " $balJavaDebugParam $distributionBinPath /bal build ${ testParams} ${ debugParams} "
150151 }
151152 }
152- copy {
153- from file(" $project . projectDir /target/bala" )
154- into file(" $artifactCacheParent /bala/${ packageOrg} /${ packageName} /${ tomlVersion} " )
153+ // extract bala file to artifact cache directory
154+ file(" $project . projectDir /target/bala" ). eachFileMatch(~/ .*.bala/ ) { balaFile ->
155+ copy {
156+ from zipTree(balaFile)
157+ into file(" $artifactCacheParent /bala/${ packageOrg} /${ packageName} /${ tomlVersion} /${ platform} " )
158+ }
155159 }
156160 copy {
157161 from file(" $project . projectDir /target/cache" )
You can’t perform that action at this time.
0 commit comments