mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
IContributor marker interface.
This commit is contained in:
parent
eafff2cd3a
commit
bd65591b0f
5 changed files with 8 additions and 4 deletions
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
4
src/main/kotlin/com/beust/kobalt/api/IContributor.kt
Normal file
4
src/main/kotlin/com/beust/kobalt/api/IContributor.kt
Normal file
|
@ -0,0 +1,4 @@
|
|||
package com.beust.kobalt.api
|
||||
|
||||
interface IContributor
|
||||
|
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue