From 9bfaf54e90e51a7a1de7bc2d48de62ff38d4a830 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 26 Aug 2024 15:14:03 +0200 Subject: [PATCH] Document that V4 mojo are supposed to be threadsafe (#1675) --- .../src/main/java/org/apache/maven/api/plugin/Mojo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java b/api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java index 62807378faf1..ca90438dd348 100644 --- a/api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java +++ b/api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java @@ -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.