Skip to content

Commit f1e05e0

Browse files
authored
Merge pull request #5 from nipunayf/init-gradle
IInitialize the project with the Gradle project and GitHub workflows
2 parents 5e90702 + 1f7cbdd commit f1e05e0

File tree

788 files changed

+5993
-4276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

788 files changed

+5993
-4276
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# See: https://help.github.com/articles/about-codeowners/
5+
6+
# These owners will be the default owners for everything in the repo.
7+
* @KavinduZoysa

.github/workflows/build-master.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Build master
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
ubuntu-build:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 60
12+
concurrency:
13+
group: ${{ github.ref_name }}-ubuntu
14+
cancel-in-progress: true
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: 'temurin'
23+
java-version: 21.0.3
24+
25+
- name: Setup Gradle
26+
uses: gradle/actions/setup-gradle@v4
27+
28+
- name: Set Up Ballerina
29+
uses: ballerina-platform/setup-ballerina@v1.1.1
30+
with:
31+
version: 2201.12.3
32+
33+
- name: Cache Ballerina dependencies
34+
uses: actions/cache@v4
35+
id: cache-ballerina
36+
with:
37+
path: /home/runner/.ballerina/repositories/
38+
key: ${{ runner.os }}-ballerina-${{ hashFiles('**/gradle.properties') }}
39+
restore-keys: |
40+
${{ runner.os }}-ballerina-
41+
42+
- name: Build with Gradle
43+
env:
44+
packageUser: ${{ github.actor }}
45+
packagePAT: ${{ secrets.GITHUB_TOKEN }}
46+
run: ./gradlew build
47+
48+
windows-build:
49+
runs-on: windows-latest
50+
timeout-minutes: 60
51+
concurrency:
52+
group: ${{ github.ref_name }}-windows
53+
cancel-in-progress: true
54+
steps:
55+
- name: Checkout repository
56+
uses: actions/checkout@v4
57+
58+
- name: Set up JDK 21
59+
uses: actions/setup-java@v3
60+
with:
61+
distribution: 'temurin'
62+
java-version: 21.0.3
63+
64+
- name: Setup Gradle
65+
uses: gradle/actions/setup-gradle@v4
66+
67+
- name: Set Up Ballerina
68+
uses: ballerina-platform/setup-ballerina@v1.1.1
69+
with:
70+
version: 2201.12.3
71+
72+
- name: Cache Ballerina dependencies
73+
uses: actions/cache@v4
74+
id: cache-ballerina
75+
with:
76+
path: C:\Users\runneradmin\.ballerina\repositories\
77+
key: ${{ runner.os }}-ballerina-${{ hashFiles('**/gradle.properties') }}
78+
restore-keys: |
79+
${{ runner.os }}-ballerina-
80+
81+
- name: Build with Gradle
82+
env:
83+
packageUser: ${{ github.actor }}
84+
packagePAT: ${{ secrets.GITHUB_TOKEN }}
85+
run: ./gradlew.bat build

.github/workflows/daily-build.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Daily build
2+
3+
on:
4+
schedule:
5+
- cron: '0 */12 * * *'
6+
7+
jobs:
8+
ubuntu-build:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 60
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up JDK 21
16+
uses: actions/setup-java@v3
17+
with:
18+
distribution: 'temurin'
19+
java-version: 21.0.3
20+
21+
- name: Setup Gradle
22+
uses: gradle/actions/setup-gradle@v4
23+
24+
- name: Set Up Ballerina
25+
uses: ballerina-platform/setup-ballerina@v1.1.1
26+
with:
27+
version: 2201.12.3
28+
29+
- name: Cache Ballerina dependencies
30+
uses: actions/cache@v4
31+
id: cache-ballerina
32+
with:
33+
path: /home/runner/.ballerina/repositories/
34+
key: ${{ runner.os }}-ballerina-${{ hashFiles('**/gradle.properties') }}
35+
restore-keys: |
36+
${{ runner.os }}-ballerina-
37+
38+
- name: Build with Gradle
39+
env:
40+
packageUser: ${{ github.actor }}
41+
packagePAT: ${{ secrets.GITHUB_TOKEN }}
42+
run: ./gradlew build
43+
44+
windows-build:
45+
runs-on: windows-latest
46+
timeout-minutes: 60
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
51+
- name: Set up JDK 21
52+
uses: actions/setup-java@v3
53+
with:
54+
distribution: 'temurin'
55+
java-version: 21.0.3
56+
57+
- name: Setup Gradle
58+
uses: gradle/actions/setup-gradle@v4
59+
60+
- name: Set Up Ballerina
61+
uses: ballerina-platform/setup-ballerina@v1.1.1
62+
with:
63+
version: 2201.12.3
64+
65+
- name: Cache Ballerina dependencies
66+
uses: actions/cache@v4
67+
id: cache-ballerina
68+
with:
69+
path: C:\Users\runneradmin\.ballerina\repositories\
70+
key: ${{ runner.os }}-ballerina-${{ hashFiles('**/gradle.properties') }}
71+
restore-keys: |
72+
${{ runner.os }}-ballerina-
73+
74+
- name: Build with Gradle
75+
env:
76+
packageUser: ${{ github.actor }}
77+
packagePAT: ${{ secrets.GITHUB_TOKEN }}
78+
run: ./gradlew.bat build

.github/workflows/pull-request.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: PR build
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
ubuntu-build:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 60
9+
concurrency:
10+
group: ${{ github.head_ref }}-ubuntu
11+
cancel-in-progress: true
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'temurin'
20+
java-version: 21.0.3
21+
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v4
24+
25+
- name: Set Up Ballerina
26+
uses: ballerina-platform/setup-ballerina@v1.1.1
27+
with:
28+
version: 2201.12.3
29+
30+
- name: Cache Ballerina dependencies
31+
uses: actions/cache@v4
32+
id: cache-ballerina
33+
with:
34+
path: /home/runner/.ballerina/repositories/
35+
key: ${{ runner.os }}-ballerina-${{ hashFiles('**/gradle.properties') }}
36+
restore-keys: |
37+
${{ runner.os }}-ballerina-
38+
39+
- name: Build with Gradle
40+
env:
41+
packageUser: ${{ github.actor }}
42+
packagePAT: ${{ secrets.GITHUB_TOKEN }}
43+
run: ./gradlew build
44+
45+
windows-build:
46+
runs-on: windows-latest
47+
timeout-minutes: 60
48+
concurrency:
49+
group: ${{ github.head_ref }}-windows
50+
cancel-in-progress: true
51+
steps:
52+
- name: Checkout repository
53+
uses: actions/checkout@v4
54+
55+
- name: Set up JDK 21
56+
uses: actions/setup-java@v3
57+
with:
58+
distribution: 'temurin'
59+
java-version: 21.0.3
60+
61+
- name: Setup Gradle
62+
uses: gradle/actions/setup-gradle@v4
63+
64+
- name: Set Up Ballerina
65+
uses: ballerina-platform/setup-ballerina@v1.1.1
66+
with:
67+
version: 2201.12.3
68+
69+
- name: Cache Ballerina dependencies
70+
uses: actions/cache@v4
71+
id: cache-ballerina
72+
with:
73+
path: C:\Users\runneradmin\.ballerina\repositories\
74+
key: ${{ runner.os }}-ballerina-${{ hashFiles('**/gradle.properties') }}
75+
restore-keys: |
76+
${{ runner.os }}-ballerina-
77+
78+
- name: Build with Gradle
79+
env:
80+
packageUser: ${{ github.actor }}
81+
packagePAT: ${{ secrets.GITHUB_TOKEN }}
82+
run: ./gradlew.bat build

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ replay_pid*
2626
# IDE specific files
2727
.idea/
2828
.vscode/
29+
30+
# Build directories
31+
.gradle/
32+
build/

architecture-model-generator/modules/architecture-model-generator-ls-extension/src/test/resources/artifacts/config/connection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"type": "CONNECTION",
6060
"name": "httpConnection",
6161
"scope": "Global",
62-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
62+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
6363
"module": "http",
6464
"children": {}
6565
},
@@ -79,7 +79,7 @@
7979
"type": "CONNECTION",
8080
"name": "graphQlConnection",
8181
"scope": "Global",
82-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.16.0.png",
82+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.16.1.png",
8383
"module": "graphql",
8484
"children": {}
8585
}

architecture-model-generator/modules/architecture-model-generator-ls-extension/src/test/resources/artifacts/config/graphql.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"type": "SERVICE",
9696
"name": "GraphQL Service - /graphql",
9797
"scope": "Global",
98-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.16.0.png",
98+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_graphql_1.16.1.png",
9999
"module": "graphql",
100100
"children": {
101101
"get#greeting": {

architecture-model-generator/modules/architecture-model-generator-ls-extension/src/test/resources/artifacts/config/http_service.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"type": "CONNECTION",
2020
"name": "httpClient",
2121
"scope": "Global",
22-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
22+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
2323
"module": "http",
2424
"children": {}
2525
}
@@ -41,7 +41,7 @@
4141
"type": "LISTENER",
4242
"name": "securedEP",
4343
"scope": "Global",
44-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
44+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
4545
"module": "http",
4646
"children": {}
4747
},
@@ -61,7 +61,7 @@
6161
"type": "LISTENER",
6262
"name": "refListener",
6363
"scope": "Global",
64-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
64+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
6565
"module": "http",
6666
"children": {}
6767
}
@@ -83,7 +83,7 @@
8383
"type": "SERVICE",
8484
"name": "HTTP Service - /api/v1",
8585
"scope": "Global",
86-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
86+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
8787
"module": "http",
8888
"children": {
8989
"get#path": {
@@ -123,7 +123,7 @@
123123
"type": "SERVICE",
124124
"name": "HTTP Service - /root/path-id",
125125
"scope": "Global",
126-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
126+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
127127
"module": "http",
128128
"children": {
129129
"post#data": {
@@ -239,7 +239,7 @@
239239
"type": "SERVICE",
240240
"name": "HTTP Service - /",
241241
"scope": "Global",
242-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
242+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
243243
"module": "http",
244244
"children": {
245245
"init": {

architecture-model-generator/modules/architecture-model-generator-ls-extension/src/test/resources/artifacts/config/listener.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"type": "LISTENER",
5858
"name": "refListener",
5959
"scope": "Global",
60-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
60+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
6161
"module": "http",
6262
"children": {}
6363
},
@@ -77,7 +77,7 @@
7777
"type": "LISTENER",
7878
"name": "httpDefaultListener",
7979
"scope": "Global",
80-
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.0.png",
80+
"icon": "https://bcentral-packageicons.azureedge.net/images/ballerina_http_2.14.1.png",
8181
"module": "http",
8282
"children": {}
8383
}

0 commit comments

Comments
 (0)