From 1e08fc3cc893702d7d2b07be5330c3b0bc9b035d Mon Sep 17 00:00:00 2001 From: John Niang Date: Tue, 10 Mar 2026 16:03:43 +0800 Subject: [PATCH] Adapt Halo 2.23 Signed-off-by: John Niang --- build.gradle | 22 ++++++++++++++++++---- src/main/resources/plugin.yaml | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index aaffc25..0c8cb63 100644 --- a/build.gradle +++ b/build.gradle @@ -1,17 +1,27 @@ plugins { id 'java' - id "io.freefair.lombok" version "8.13" - id "run.halo.plugin.devtools" version "0.6.1" + id "io.freefair.lombok" version "9.2.0" + id "run.halo.plugin.devtools" version "0.6.2" } group 'run.halo.starter' repositories { + maven { + name = 'Central Portal Snapshots' + url = 'https://central.sonatype.com/repository/maven-snapshots/' + + // Only search this repository for the specific dependency + content { + includeGroupAndSubgroups('run.halo') + } + } mavenCentral() } dependencies { - implementation platform('run.halo.tools.platform:plugin:2.21.0') + // TODO Change to a released version once available + implementation platform('run.halo.tools.platform:plugin:2.23.0-SNAPSHOT') compileOnly 'run.halo.app:api' testImplementation 'run.halo.app:api' @@ -45,6 +55,10 @@ tasks.named('classes') { dependsOn tasks.named('processUiResources') } +tasks.named('generatePluginComponentsIdx') { + notCompatibleWithConfigurationCache('This task invokes "Task.project" at execution time, which is not supported with configuration cache.') +} + halo { - version = '2.21' + version = '2.23.0-beta.2' } diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index d5bb913..66acaea 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -7,7 +7,7 @@ metadata: name: starter spec: enabled: true - requires: ">=2.21.0" + requires: ">=2.23.0" author: name: Halo website: https://github.com/halo-dev