1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

IContributor marker interface.

This commit is contained in:
Cedric Beust 2015-11-08 16:50:34 -08:00
parent eafff2cd3a
commit bd65591b0f
5 changed files with 8 additions and 4 deletions

View file

@ -5,7 +5,7 @@ import com.beust.kobalt.maven.IClasspathDependency
/**
* Plugins that export classpath entries need to implement this interface.
*/
interface IClasspathContributor {
interface IClasspathContributor : IContributor {
fun entriesFor(project: Project?) : Collection<IClasspathDependency>
}

View file

@ -0,0 +1,4 @@
package com.beust.kobalt.api
interface IContributor

View file

@ -7,7 +7,7 @@ import java.io.OutputStream
* Plugins that want to participate in the --init process (they can generate files to initialize
* a new project).
*/
interface IInitContributor {
interface IInitContributor : IContributor {
/**
* How many files your plug-in understands in the given directory. The contributor with the
* highest number will be asked to generate the build file.

View file

@ -3,7 +3,7 @@ package com.beust.kobalt.api
/**
* Plugins that create projects need to implement this interface.
*/
interface IProjectContributor {
interface IProjectContributor : IContributor {
fun projects() : List<ProjectDescription>
}

View file

@ -5,7 +5,7 @@ import java.net.URI
/**
* Plugins that add their own repos.
*/
interface IRepoContributor {
interface IRepoContributor : IContributor {
fun reposFor(project: Project?) : List<URI>
}