Skip to content

Commit 0a2aa10

Browse files
committed
Merge branch '2024.3' into 2025.1
2 parents 1151dcd + fe06337 commit 0a2aa10

File tree

7 files changed

+41
-39
lines changed

7 files changed

+41
-39
lines changed

Diff for: .github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- uses: gradle/actions/wrapper-validation@v3
12+
- uses: gradle/actions/wrapper-validation@v4

Diff for: .github/workflows/publish.yml

+14-16
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,21 @@ jobs:
99
name: Publish
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- name: Checkout sources
13+
uses: actions/checkout@v4
1314
with:
1415
submodules: true
1516
- name: Fetch latest submodule updates
1617
run: git submodule update --remote
17-
- uses: actions/setup-java@v4
18+
- name: Setup Java
19+
uses: actions/setup-java@v4
1820
with:
19-
distribution: 'zulu'
20-
java-version: |
21-
11
22-
17
23-
- uses: actions/cache@v4
21+
distribution: 'temurin'
22+
java-version: 17
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v4
2425
with:
25-
path: |
26-
~/.gradle/caches
27-
~/.gradle/jdks
28-
~/.gradle/native
29-
~/.gradle/wrapper
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', 'gradle/**', 'gradle.properties') }}
31-
restore-keys: |
32-
${{ runner.os }}-gradle-
26+
cache-read-only: true
3327
- name: Setup publish token
3428
env:
3529
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}
@@ -38,8 +32,12 @@ jobs:
3832
mkdir -p ~/.gradle/
3933
echo "GRADLE_USER_HOME=$HOME/.gradle" >> "$GITHUB_ENV"
4034
echo "mcdev.deploy.token=${JETBRAINS_TOKEN}" > ~/.gradle/gradle.properties
35+
- shell: bash
36+
run: |
37+
mkdir -p ~/.gradle/
38+
echo -e '\norg.gradle.jvmargs=-Xmx4G\n' >> ~/.gradle/gradle.properties
4139
- name: Publish plugin
42-
run: ./gradlew clean :publishPlugin --no-daemon --stacktrace
40+
run: ./gradlew clean :publishPlugin --stacktrace
4341
- name: Get tag name
4442
id: get_tag
4543
shell: bash

Diff for: .github/workflows/test.yml

+20-16
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,25 @@ jobs:
1616
- 'windows-latest'
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-java@v4
19+
- name: Checkout sources
20+
uses: actions/checkout@v4
21+
- name: Setup Java
22+
uses: actions/setup-java@v4
2123
with:
22-
distribution: 'zulu'
23-
java-version: |
24-
11
25-
17
26-
- uses: actions/cache@v4
24+
distribution: 'temurin'
25+
java-version: 17
26+
- uses: actions-ecosystem/action-regex-match@d50fd2e7a37d0e617aea3d7ada663bd56862b9cc
27+
id: branch-match
2728
with:
28-
path: |
29-
~/.gradle/caches
30-
~/.gradle/jdks
31-
~/.gradle/native
32-
~/.gradle/wrapper
33-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', 'gradle/**', 'gradle.properties') }}
34-
restore-keys: |
35-
${{ runner.os }}-gradle-
36-
- run: ./gradlew build --no-daemon --stacktrace
29+
text: ${{ github.ref }}
30+
regex: '^refs\/heads\/\d{4}\.\d$'
31+
- name: Setup Gradle
32+
uses: gradle/actions/setup-gradle@v4
33+
with:
34+
cache-read-only: ${{ github.ref != 'refs/heads/dev' && steps.branch-match.outputs.match == '' }}
35+
- shell: bash
36+
run: |
37+
mkdir -p ~/.gradle/
38+
echo -e '\norg.gradle.jvmargs=-Xmx4G\n' >> ~/.gradle/gradle.properties
39+
- name: Build
40+
run: ./gradlew build --stacktrace

Diff for: buildSrc/build.gradle.kts

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@
1818
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

21+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2122
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2223

2324
plugins {
2425
`kotlin-dsl`
2526
}
2627

2728
tasks.withType<JavaCompile>().configureEach {
28-
options.release.set(8)
29+
options.release.set(17)
2930
}
3031
tasks.withType<KotlinCompile>().configureEach {
31-
kotlinOptions.jvmTarget = "1.8"
32+
compilerOptions.jvmTarget = JvmTarget.JVM_17
3233
}
3334

3435
repositories {

Diff for: gradle/wrapper/gradle-wrapper.jar

201 Bytes
Binary file not shown.

Diff for: gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

Diff for: gradlew

+2-3
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -206,7 +205,7 @@ fi
206205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207206

208207
# Collect all arguments for the java command:
209-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210209
# and any embedded shellness will be escaped.
211210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212211
# treated as '${Hostname}' itself on the command line.

0 commit comments

Comments
 (0)