You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2024/08/26 13:14:08 UTC
(maven) branch master updated: Document that V4 mojo are supposed to be threadsafe (#1675)
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 9bfaf54e90 Document that V4 mojo are supposed to be threadsafe (#1675)
9bfaf54e90 is described below
commit 9bfaf54e90e51a7a1de7bc2d48de62ff38d4a830
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Mon Aug 26 15:14:03 2024 +0200
Document that V4 mojo are supposed to be threadsafe (#1675)
---
api/maven-api-core/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 62807378fa..ca90438dd3 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 @@ package org.apache.maven.api.plugin;
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 @@ import org.apache.maven.api.annotations.Experimental;
@Experimental
@FunctionalInterface
@Consumer
+@ThreadSafe
public interface Mojo {
/**
* Perform whatever build-process behavior this {@code Mojo} implements.