Document that V4 mojo are supposed to be threadsafe (#1675)

This commit is contained in:
Guillaume Nodet 2024-08-26 15:14:03 +02:00 committed by GitHub
parent 6e6c262192
commit 9bfaf54e90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
import org.apache.maven.api.annotations.Consumer;
import org.apache.maven.api.annotations.Experimental;
import org.apache.maven.api.annotations.ThreadSafe;
/**
* This interface forms the contract required for Mojos to interact with the Maven infrastructure.
@ -31,6 +32,7 @@
@Experimental
@FunctionalInterface
@Consumer
@ThreadSafe
public interface Mojo {
/**
* Perform whatever build-process behavior this {@code Mojo} implements.