Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

chore: remove deprecated plugin wrapper #12

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "com.github.node-gradle.node" version "5.0.0"
id "run.halo.plugin.devtools" version "0.0.6"
id "run.halo.plugin.devtools" version "0.0.9"
id "io.freefair.lombok" version "8.0.1"
id 'java'
}
Expand All @@ -17,7 +17,7 @@ repositories {

dependencies {

implementation platform('run.halo.tools.platform:plugin:2.6.0-SNAPSHOT')
implementation platform('run.halo.tools.platform:plugin:2.10.0-SNAPSHOT')
compileOnly 'run.halo.app:api'

testImplementation 'run.halo.app:api'
Expand Down
15 changes: 4 additions & 11 deletions src/main/java/run/halo/unsplash/UnsplashPlugin.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package run.halo.unsplash;

import org.pf4j.PluginWrapper;
import org.springframework.stereotype.Component;
import run.halo.app.extension.SchemeManager;

import run.halo.app.plugin.BasePlugin;
import run.halo.app.plugin.PluginContext;

/**
* @author ryanwang
Expand All @@ -12,15 +12,8 @@
@Component
public class UnsplashPlugin extends BasePlugin {

public UnsplashPlugin(PluginWrapper wrapper) {
super(wrapper);
}

@Override
public void start() {
public UnsplashPlugin(PluginContext context) {
super(context);
}

@Override
public void stop() {
}
}
8 changes: 5 additions & 3 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ metadata:
spec:
enabled: true
version: 1.0.0
requires: ">=2.0.0"
requires: ">=2.10.0"
author:
name: Halo OSS Team
name: Halo
website: https://github.com/halo-dev
logo: logo.svg
settingName: unsplash-settings
configMapName: unsplash-settings
homepage: https://github.com/halo-sigs/plugin-unsplash
repo: https://github.com/halo-sigs/plugin-unsplash
homepage: https://www.halo.run/store/apps/app-NRcGw
issues: https://github.com/halo-sigs/plugin-unsplash/issues
displayName: "Unsplash"
description: "提供从 Unsplash 选择或转存图片的能力"
license:
Expand Down
Loading