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

More IContributors.

This commit is contained in:
Cedric Beust 2016-04-23 05:13:52 -08:00
parent 8fe055ee91
commit 234172a1a7
8 changed files with 8 additions and 8 deletions

View file

@ -5,6 +5,6 @@ import com.beust.kobalt.TaskResult
/**
* Plug-ins that will be invoked during the "assemble" task.
*/
interface IAssemblyContributor {
interface IAssemblyContributor : IContributor {
fun assemble(project: Project, context: KobaltContext) : TaskResult
}

View file

@ -5,6 +5,6 @@ class BuildConfigField(val type: String, val name: String, val value: Any)
/**
* Plug-ins that want to add fields to BuildConfig need to implement this interface.
*/
interface IBuildConfigFieldContributor {
interface IBuildConfigFieldContributor : IContributor {
fun fieldsFor(project: Project, context: KobaltContext) : List<BuildConfigField>
}

View file

@ -35,6 +35,6 @@ interface ICompiler : Comparable<ICompiler> {
val canCompileDirectories: Boolean get() = false
}
interface ICompilerContributor : IProjectAffinity {
interface ICompilerContributor : IProjectAffinity, IContributor {
fun compilersFor(project: Project, context: KobaltContext): List<ICompiler>
}

View file

@ -2,7 +2,7 @@ package com.beust.kobalt.api
import com.beust.kobalt.TaskResult
interface IDocContributor : IProjectAffinity {
interface IDocContributor : IProjectAffinity, IContributor {
fun generateDoc(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult
}

View file

@ -6,7 +6,7 @@ import com.beust.kobalt.IncrementalTaskInfo
* Plug-ins that will be invoked during the "assemble" task and wish to return an incremental task instead
* of a regular one.
*/
interface IIncrementalAssemblyContributor {
interface IIncrementalAssemblyContributor : IContributor {
fun assemble(project: Project, context: KobaltContext) : IncrementalTaskInfo
}

View file

@ -5,7 +5,7 @@ import java.io.File
/**
* Plug-ins that add source directories to be compiled need to implement this interface.
*/
interface ISourceDirectoryContributor {
interface ISourceDirectoryContributor : IContributor {
fun sourceDirectoriesFor(project: Project, context: KobaltContext): List<File>
}

View file

@ -6,7 +6,7 @@ import com.beust.kobalt.Args
* Plugins that want to participate in the --init process (they can generate files to initialize
* a new project).
*/
interface ITemplateContributor {
interface ITemplateContributor : IContributor {
companion object {
val DIRECTORY_NAME = "templates"
}

View file

@ -5,7 +5,7 @@ import java.io.File
/**
* Plug-ins that add tets source directories to be compiled need to implement this interface.
*/
interface ITestSourceDirectoryContributor {
interface ITestSourceDirectoryContributor : IContributor {
fun testSourceDirectoriesFor(project: Project, context: KobaltContext): List<File>
}