Skip to content

Commit

Permalink
Setup ballerina service build using maven
Browse files Browse the repository at this point in the history
  • Loading branch information
IsuruMaduranga committed Oct 31, 2023
1 parent 57ccbc9 commit fde119e
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 2 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<modules>
<module>counter</module>
<module>service</module>
</modules>

<repositories>
Expand Down
5 changes: 3 additions & 2 deletions service/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
org = "test"
org = "wso2"
name = "TransactionCountingService"
version = "0.1.0"
version = "1.0.0"
distribution = "2201.7.0"

[build-options]
observabilityIncluded = true
cloud = "k8s"
7 changes: 7 additions & 0 deletions service/Cloud.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[container.image]
repository="wso2inc"
name="transaction-counting-service"
tag="v1.0.0"

[settings]
buildImage=false
57 changes: 57 additions & 0 deletions service/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
# Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
#
# Licensed 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.wso2.integration.transaction.counter</groupId>
<artifactId>transaction-counter</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>transaction-count-service</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<name>WSO2 Integration Transaction Counting Service</name>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>counting-service-build</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>bal</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit fde119e

Please sign in to comment.