Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove deprecated plugin wrapper #25

Merged
merged 1 commit into from
Jul 4, 2024
Merged
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
chore: remove deprecated plugin wrapper
Signed-off-by: Ryan Wang <i@ryanc.cc>
ruibaby committed Jul 4, 2024
commit 62d9001ea2fe3804742d1d095638eca71af3924b
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -6,7 +6,11 @@ plugins {
}

group 'run.halo.umami'
sourceCompatibility = JavaVersion.VERSION_17

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
7 changes: 4 additions & 3 deletions src/main/java/run/halo/umami/UmamiPlugin.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package run.halo.umami;

import org.pf4j.PluginWrapper;
import org.springframework.stereotype.Component;

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

/**
* @author guqing
@@ -11,8 +12,8 @@
@Component
public class UmamiPlugin extends BasePlugin {

public UmamiPlugin(PluginWrapper wrapper) {
super(wrapper);
public UmamiPlugin(PluginContext context) {
super(context);
}

@Override