Skip to content

Commit

Permalink
Update daily build to run on Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
udda1996 committed Jul 19, 2023
1 parent cc48f15 commit 931eb2b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- name: Get daily docker version
id: version
run: echo "::set-output name=version::$(date +'%Y-%m-%d')"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ task extractJreForMacArm(type: Copy) {

task extractJreForWindows(type: Copy) {
group = "extract_jre"
from zipTree { "${jreLocation}/ballerina-jre-windows-64-${ballerinaJreVersion}.zip" }
from zipTree { "${jreLocation}/ballerina-jre-win-64-${ballerinaJreVersion}.zip" }
into("${buildDir}/target/extracted-jre-windows")
}

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ allprojects {

subprojects {
apply plugin: 'java'
sourceCompatibility = 11
targetCompatibility = 11
sourceCompatibility = 17
targetCompatibility = 17
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand Down
2 changes: 2 additions & 0 deletions cache-generator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ shadowJar {
}

compileJava {
sourceCompatibility = 17
targetCompatibility = 17
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
Expand Down
2 changes: 1 addition & 1 deletion gradle/javaProject.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
checkstyle "com.puppycrawl.tools:checkstyle:${puppycrawlCheckstyleVersion}"
}

sourceCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip

0 comments on commit 931eb2b

Please sign in to comment.