Skip to content

Commit

Permalink
Template
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Apr 17, 2024
1 parent 2dde3d1 commit 9443e15
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
27 changes: 20 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>templating-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>filter-src</id>
<goals>
<goal>filter-sources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
<sourceDirectory>src/main/java/io/wdsj/asw/velocity/template</sourceDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down Expand Up @@ -52,17 +69,13 @@
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<excludes>
<exclude>**/io/wdsj/asw/velocity/template/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
import com.velocitypowered.api.proxy.messages.ChannelIdentifier;
import com.velocitypowered.api.proxy.messages.LegacyChannelIdentifier;
import com.velocitypowered.api.proxy.messages.MinecraftChannelIdentifier;
import io.wdsj.asw.velocity.template.PomData;
import org.slf4j.Logger;

import java.util.Optional;

@Plugin(
id = "advancedsensitivewords",
name = "AdvancedSensitiveWordsVelocity",
version = "Crystal",
version = PomData.VERSION,
authors = {"HaHaWTH"}
)
public class AdvancedSensitiveWordsVelocity {
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/io/wdsj/asw/velocity/template/PomData.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package io.wdsj.asw.velocity.template;

public class PomData {
public static final String VERSION = "${project.version}";
}

0 comments on commit 9443e15

Please sign in to comment.