Skip to content

Commit

Permalink
Update to the latest build conventions and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
big-andy-coates committed Mar 22, 2023
1 parent 35182cb commit 2fccd43
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0
with:
java-version: '11' # Gradle 6.4 requires an older JDK
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0
with:
java-version: '11' # Gradle 6.4 requires an older JDK
java-version: '17'
distribution: 'adopt'
cache: gradle

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0
with:
java-version: '11' # Gradle 6.4 requires an older JDK
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Ensure build is green
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@3f07048e3d294f56e9b90ac5ea2c6f74e9ad0f98 # v3.10.0
with:
java-version: '11' # Gradle 6.4 requires an older JDK
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Increment version
Expand Down
8 changes: 5 additions & 3 deletions buildSrc/src/main/kotlin/creek-common-convention.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
*
* <p>Apply to all java modules, usually excluding the root project in multi-module sets.
*
* <p>Version: 1.5
* <p>Version: 1.7
* - 1.7: Switch to setting Java version via toolchain
* - 1.6: Remove GitHub packages for snapshots
* - 1.5: Add filters to exclude generated sources
* - 1.4: Add findsecbugs-plugin
Expand All @@ -36,8 +37,9 @@ plugins {
group = "org.creekservice"

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

repositories {
Expand Down

0 comments on commit 2fccd43

Please sign in to comment.