mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 15:39:22 +08:00
Centralize CI build JDK, update with Renovate (#1941)
This commit is contained in:
6
.github/renovate.json
vendored
6
.github/renovate.json
vendored
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
]
|
||||
}
|
26
.github/renovate.json5
vendored
Normal file
26
.github/renovate.json5
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
||||
extends: [
|
||||
'config:recommended',
|
||||
],
|
||||
ignorePresets: [
|
||||
// Ensure we get the latest version and are not pinned to old versions.
|
||||
'workarounds:javaLTSVersions',
|
||||
],
|
||||
customManagers: [
|
||||
// Update .java-version file with the latest JDK version.
|
||||
{
|
||||
customType: 'regex',
|
||||
fileMatch: [
|
||||
'\\.java-version$',
|
||||
],
|
||||
matchStrings: [
|
||||
'(?<currentValue>.*)\\n',
|
||||
],
|
||||
datasourceTemplate: 'java-version',
|
||||
depNameTemplate: 'java',
|
||||
// Only write the major version.
|
||||
extractVersionTemplate: '^(?<version>\\d+)',
|
||||
},
|
||||
]
|
||||
}
|
1
.github/workflows/.java-version
vendored
Normal file
1
.github/workflows/.java-version
vendored
Normal file
@@ -0,0 +1 @@
|
||||
21
|
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -16,12 +16,10 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Configure JDK
|
||||
uses: actions/setup-java@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '21'
|
||||
cache: 'gradle'
|
||||
java-version-file: .github/workflows/.java-version
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
Reference in New Issue
Block a user