<properties>
<!-- Replace with the latest WLIB version -->
<wlib.version>{version}</wlib.version>
</properties>
<repositories>
<repository>
<id>webmc</id>
<url>https://codeberg.org/api/packages/WebMCDevelopment/maven/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>xyz.webmc.wlib</groupId>
<artifactId>wlib-plugin</artifactId>
<version>${wlib.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>xyz.webmc.wlib</groupId>
<artifactId>wlib-devkit</artifactId>
<version>${wlib.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>xyz.webmc.wlib</groupId>
<artifactId>wlib-devkit</artifactId>
<version>${wlib.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
// Replace with the latest WLIB version
val WLIB_VERSION = "{version}"
repositories {
maven("https://codeberg.org/api/packages/WebMCDevelopment/maven/")
}
dependencies {
compileOnly("xyz.webmc.wlib:wlib-plugin:$WLIB_VERSION")
compileOnly("xyz.webmc.wlib:wlib-devkit:$WLIB_VERSION")
annotationProcessor("xyz.webmc.wlib:wlib-devkit:$WLIB_VERSION")
}
package com.example;
import xyz.webmc.wlib.api.plugin.WPlugin;
import xyz.webmc.wlib.devkit.annotation.PluginMeta;
@PluginMeta(
name = "ExamplePlugin",
version = "1.0-SNAPSHOT",
foliaSupported = true
)
public final class ExamplePlugin extends WPlugin {
@Override
protected void load() {}
@Override
protected void enable() {}
@Override
protected void disable() {}
}