mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
More IContributors.
This commit is contained in:
parent
8fe055ee91
commit
234172a1a7
8 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue