Skip to content

Commit

Permalink
build: Possible fix for release build failure
Browse files Browse the repository at this point in the history
build was failing due to the hard coded "-SNAPSHOT" lib version in
core module's Ballerina.toml file. During the release process all
version's get modified into non snapshot version. Therefore ballerina
endsup falling to identify the lib in provided path.
This solution will try to solve the issue by replacing the toml file
value to current project version during the build process.
  • Loading branch information
praminda committed Jan 29, 2020
1 parent ba74992 commit 4f8fce8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/micro-gateway-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,27 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<replaceregexp
file="src/main/ballerina/Ballerina.toml"
match="org\.wso2\.micro\.gateway\.core-.*.jar"
replace="org.wso2.micro.gateway.core-${project.version}.jar"
byline="true"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>

</plugins>

</build>
Expand Down

0 comments on commit 4f8fce8

Please sign in to comment.