From b57d61a50d83411d0333030d7cf87854144f1cbe Mon Sep 17 00:00:00 2001
From: Cedric Beust
- Several plug-ins might want to contribute to a specific task where only one participant only should be allowed, + Several plug-ins might want to contribute to a specific task where only one participant should be allowed, such as running tests or generating documentation. Even the simple task of compiling should probably only ever be performed by no more than one plug-in for a given project. Therefore, when comes the time to compile a project, @@ -267,7 +267,7 @@ class JavaBuildGenerator: IInitContributor { affinity to that task for a given project.
- Contributors that need to be selected all need to implement the following interface: + Contributors that want to participate in a selection process need to implement the following interface:
interface IProjectAffinity { @@ -278,7 +278,7 @@ interface IProjectAffinity { fun affinity(project: Project, context: KobaltContext) : Int }
- For example, the JavaPlugin implements the ICompilerContributor
interface and then overrides
+ For example, the JavaPlugin implements the ICompilerContributor
interface and then overrides
the affinity()
method to make sure it gets run for Java projects but ignored for others: