Skip to content

Commit 44c3f09

Browse files
authored
Upgrade Gradle and Java toolchain to latest versions (#186)
```release-note None ```
1 parent 2e6b646 commit 44c3f09

7 files changed

Lines changed: 55 additions & 48 deletions

File tree

build.gradle

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
plugins {
22
id 'java'
3-
id "io.freefair.lombok" version "8.0.1"
4-
id "com.github.node-gradle.node" version "7.0.2"
5-
id "run.halo.plugin.devtools" version "0.0.7"
3+
id "io.freefair.lombok" version "8.14"
4+
id "com.github.node-gradle.node" version "7.1.0"
5+
id "run.halo.plugin.devtools" version "0.6.2"
66
}
77

88
group 'run.halo.comment.widget'
9-
sourceCompatibility = JavaVersion.VERSION_17
9+
10+
java {
11+
toolchain {
12+
languageVersion = JavaLanguageVersion.of(21)
13+
}
14+
}
15+
16+
tasks.withType(JavaCompile).configureEach {
17+
options.encoding = "UTF-8"
18+
options.release = 21
19+
}
1020

1121
repositories {
1222
mavenCentral()
13-
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
14-
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
15-
maven { url 'https://repo.spring.io/milestone' }
1623
}
1724

1825
dependencies {
19-
implementation platform('run.halo.tools.platform:plugin:2.13.0-SNAPSHOT')
26+
implementation platform('run.halo.tools.platform:plugin:2.21.0')
2027
compileOnly 'run.halo.app:api'
2128

2229
testImplementation 'run.halo.app:api'

gradle/wrapper/gradle-wrapper.jar

-15.8 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 23 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
pluginManagement {
2-
repositories {
3-
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
4-
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
5-
maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
6-
maven { url 'https://repo.spring.io/milestone' }
7-
gradlePluginPortal()
8-
}
9-
}
101
rootProject.name = 'plugin-comment-widget'
11-

src/main/resources/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
"store.halo.run/app-id": "app-YXyaD"
99
spec:
1010
enabled: true
11-
requires: ">=2.20.0"
11+
requires: ">=2.21.0"
1212
author:
1313
name: Halo
1414
website: https://github.com/halo-dev

0 commit comments

Comments
 (0)