Skip to content

Commit e228d56

Browse files
committed
Explicitly add velocity-api as an AP in maven example
1 parent 0573a10 commit e228d56

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/content/docs/velocity/dev/getting-started/creating-your-first-plugin.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,25 @@ system's documentation ([Gradle](https://docs.gradle.org/current/userguide/userg
108108
<scope>provided</scope>
109109
</dependency>
110110
</dependencies>
111+
112+
<build>
113+
<plugins>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-compiler-plugin</artifactId>
117+
<configuration>
118+
<release>21</release> <!-- The Java version that you want to compile for -->
119+
<annotationProcessorPaths>
120+
<path>
121+
<groupId>com.velocitypowered</groupId>
122+
<artifactId>velocity-api</artifactId>
123+
<version>\{LATEST_VELOCITY_RELEASE}</version>
124+
</path>
125+
</annotationProcessorPaths>
126+
</configuration>
127+
</plugin>
128+
</plugins>
129+
</build>
111130
</project>
112131
```
113132
</TabItem>

0 commit comments

Comments
 (0)