Skip to content

Commit

Permalink
Merge pull request #277 from gabilang/update-worflow-java-ver
Browse files Browse the repository at this point in the history
Update Java version to 17.0.7 in workflows
  • Loading branch information
warunalakshitha authored Aug 15, 2023
2 parents 6f87361 + 5fe3c8d commit c6d4848
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 26 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.22.1'

- name: Set up JDK 11.0.7
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11.0.7
distribution: 'temurin'
java-version: 17.0.7

- name: Change to Timestamped Version
run: |
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.22.1'

- name: Set up JDK 11.0.7
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11.0.7
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
Expand All @@ -32,17 +33,18 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.22.1'

- name: Set up JDK 11.0.7
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11.0.7
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ jobs:
publish-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.22.1'

- name: Set up JDK 11.0.7
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11.0.7
distribution: 'temurin'
java-version: 17.0.7
- name: Set version env variable
run: echo VERSION=$((grep -w "version" | cut -d= -f2) < gradle.properties | cut -d- -f1) >> $GITHUB_ENV
- name: Pre release depenency version update
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.22.1'

- name: Set up JDK 11.0.7
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11.0.7
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
Expand All @@ -36,15 +37,16 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.22.1'
- name: Set up JDK 11.0.7
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11.0.7
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ group=org.ballerinalang
version=1.2.1-SNAPSHOT
ballerinaLangVersion=2201.8.0-20230726-145300-b2bdf796

ballerinaGradlePluginVersion=2.0.1-SNAPSHOT
ballerinaGradlePluginVersion=2.0.1
checkStyleToolVersion=10.12.1
downloadPluginVersion=5.4.0
eclipseLsp4jVersion=0.12.0
Expand Down
2 changes: 1 addition & 1 deletion gradle/javaProject.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies {
}
}

sourceCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
Expand Down

0 comments on commit c6d4848

Please sign in to comment.