diff --git a/plug-in-development/index.html b/plug-in-development/index.html index 0df15db..6fe9765 100644 --- a/plug-in-development/index.html +++ b/plug-in-development/index.html @@ -271,11 +271,12 @@ class JavaBuildGenerator: IInitContributor {
interface IProjectAffinity { -/** - * @return an integer indicating the affinity of your actor for the given project. The actor that returns - * the highest affinity gets selected. - */ -fun affinity(project: Project, context: KobaltContext) : Int+ /** + * @return an integer indicating the affinity of your actor for the given project. The actor that returns + * the highest affinity gets selected. + */ + fun affinity(project: Project, context: KobaltContext) : Int +}
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: