Skip to content

Commit

Permalink
Update gradle.properties with latest release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
udda1996 committed Sep 26, 2023
1 parent cd01a7f commit 886e112
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,30 @@ jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build jacocoTestReport
env:
TEST_MODE_ACTIVE: true
- name: Generate Codecov Report
uses: codecov/codecov-action@v1
- uses: actions/checkout@v2
- name: Set up JDK 17.0.7
uses: actions/setup-java@v2
with:
java-version: 17.0.7
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build jacocoTestReport
env:
TEST_MODE_ACTIVE: true
- name: Generate Codecov Report
uses: codecov/codecov-action@v1

macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 17.0.7
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 17.0.7
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand All @@ -39,10 +41,11 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 17.0.7
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 17.0.7
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ task unpackBallerinaJre(type: Download) {
"${jreBaseURL}/ballerina-jre-linux-64-${project.ballerinaJreVersion}.zip",
"${jreBaseURL}/ballerina-jre-macos-64-${project.ballerinaJreVersion}.zip",
"${jreBaseURL}/ballerina-jre-macos-arm-64-${project.ballerinaJreVersion}.zip",
"${jreBaseURL}/ballerina-jre-windows-64-${project.ballerinaJreVersion}.zip"
"${jreBaseURL}/ballerina-jre-win-64-${project.ballerinaJreVersion}.zip"
])
onlyIfModified true
dest "${jreLocation}"
Expand Down Expand Up @@ -113,7 +113,7 @@ task extractJreForMacARM(type: Copy) {
task extractJreForWindows(type: Copy) {
dependsOn unpackBallerinaJre
group = "extract_jre"
from zipTree { "${jreLocation}/ballerina-jre-windows-64-${project.ballerinaJreVersion}.zip" }
from zipTree { "${jreLocation}/ballerina-jre-win-64-${project.ballerinaJreVersion}.zip" }
into("${buildDir}/target/extracted-jre-windows")
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
group=org.ballerinalang
version=1.4.1-SNAPSHOT
ballerinaJreVersion=1.1.0
ballerinaJreVersion=2.0.0
jreVersion=17.0.7+7

# For test purpose
swan-lake-version=2201.2.0
swan-lake-spec-version=2022R3
swan-lake-latest-version=2201.7.2
swan-lake-latest-version=2201.8.0
swan-lake-latest-spec-version=2023R1
1-x-channel-version=1.2.0
1-x-channel-spec-version=2020R1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ public void projectTestWithLatestSpec() throws IOException, InterruptedException
args.remove(args.size() - 1);
args.add("run");
output = TestUtils.executeCommand(args, projectPath);
Assert.assertTrue(output.contains("Hello, World!"));
Assert.assertTrue(output.contains("Hello, World!"), output);
System.out.println(output);
}

@Test(description = "Test dist list command.", dependsOnMethods = {"testUseCommand"})
Expand Down

0 comments on commit 886e112

Please sign in to comment.