abstract class KotlinBuildScript : Project
Base class for Kotlin build scripts.
KotlinBuildScript(host: <ERROR CLASS><Project>)
Base class for Kotlin build scripts. |
open fun buildscript(block: ScriptHandlerScope.() -> Unit): Unit
Configures the build script classpath for this project. |
|
open fun getBuildscript(): ScriptHandler
The ScriptHandler for this script. |
|
fun plugins(block: PluginDependenciesSpecScope.() -> Unit): Unit
Configures the plugin dependencies for this project. |
val Project.announce: AnnouncePluginExtension
Retrieves the announce extension. |
|
val Project.application: ApplicationPluginConvention
Retrieves the application convention. |
|
val Project.base: BasePluginConvention
Retrieves the base convention. |
|
val Project.buildTypes: BuildTypeContainer
Retrieves the buildTypes extension. |
|
val Project.checkstyle: CheckstyleExtension
Retrieves the checkstyle extension. |
|
val Project.codenarc: CodeNarcExtension
Retrieves the codenarc extension. |
|
val Project.defaultArtifacts: <ERROR CLASS>
Retrieves the defaultArtifacts extension. |
|
val Project.distributions: DistributionContainer
Retrieves the distributions extension. |
|
val Project.ear: EarPluginConvention
Retrieves the ear convention. |
|
val Project.eclipse: EclipseModel
Retrieves the eclipse extension. |
|
val ExtensionAware.extra: ExtraPropertiesExtension
The extra properties extension in this object's extension container. |
|
val Project.findbugs: FindBugsExtension
Retrieves the findbugs extension. |
|
val Project.flavors: FlavorContainer
Retrieves the flavors extension. |
|
val Project.groovyRuntime: GroovyRuntime
Retrieves the groovyRuntime extension. |
|
val Project.idea: IdeaModel
Retrieves the idea extension. |
|
val Project.jacoco: JacocoPluginExtension
Retrieves the jacoco extension. |
|
val Project.java: JavaPluginConvention
Retrieves the java convention. |
|
val Project.javaScript: JavaScriptExtension
Retrieves the javaScript extension. |
|
val Project.jdepend: JDependExtension
Retrieves the jdepend extension. |
|
val Project.maven: MavenPluginConvention
Retrieves the maven convention. |
|
val Project.osgi: OsgiPluginConvention
Retrieves the osgi convention. |
|
val Project.platforms: PlatformContainer
Retrieves the platforms extension. |
|
val Project.playConfigurations: PlayPluginConfigurations
Retrieves the playConfigurations extension. |
|
val Project.pmd: PmdExtension
Retrieves the pmd extension. |
|
val Project.projectReports: ProjectReportsPluginConvention
Retrieves the projectReports convention. |
|
val Project.publishing: PublishingExtension
Retrieves the publishing extension. |
|
val Project.reporting: ReportingExtension
Retrieves the reporting extension. |
|
val Project.scalaRuntime: ScalaRuntime
Retrieves the scalaRuntime extension. |
|
val Project.signing: SigningExtension
Retrieves the signing extension. |
|
val Project.toolChains: NativeToolChainRegistry
Retrieves the toolChains extension. |
|
val Project.visualStudio: VisualStudioRootExtension
Retrieves the visualStudio extension. |
|
val Project.war: WarPluginConvention
Retrieves the war convention. |
|
val Project.xcode: XcodeRootExtension
Retrieves the xcode extension. |
fun Project.announce(configure: AnnouncePluginExtension.() -> Unit): Unit
Configures the announce extension. |
|
fun Project.application(configure: ApplicationPluginConvention.() -> Unit): Unit
Configures the application convention. |
|
fun PluginAware.apply(from: Any? = null, plugin: String? = null, to: Any? = null): Unit
Applies the given plugin or script. fun <T : Plugin<*>> PluginAware.apply(to: Any): Unit
Applies the plugin of the given type T to the specified object. Does nothing if the plugin has already been applied. |
|
fun Project.base(configure: BasePluginConvention.() -> Unit): Unit
Configures the base convention. |
|
fun Project.buildTypes(configure: BuildTypeContainer.() -> Unit): Unit
Configures the buildTypes extension. |
|
fun Project.buildscript(action: ScriptHandlerScope.() -> Unit): Unit |
|
fun Project.checkstyle(configure: CheckstyleExtension.() -> Unit): Unit
Configures the checkstyle extension. |
|
fun <T> Any.closureOf(action: T.() -> Unit): Closure<Any?>
Adapts a Kotlin function to a single argument Groovy Closure. |
|
fun Project.codenarc(configure: CodeNarcExtension.() -> Unit): Unit
Configures the codenarc extension. |
|
fun <T : Any> ExtensionAware.configure(configuration: T.() -> Unit): Unit
Executes the given configuration block against the extension of the specified type. |
|
fun <T : Any> Project.configure(configuration: T.() -> Unit): Unit
Executes the given configuration block against the plugin convention or extension of the specified type. |
|
fun <T : Task> Project.createTask(name: String, type: KClass<T>, configuration: T.() -> Unit): T |
|
fun Project.defaultArtifacts(configure: <ERROR CLASS>.() -> Unit): Unit
Configures the defaultArtifacts extension. |
|
fun Project.defaultTasks(vararg tasks: Task): Unit
Sets the default tasks of this project. These are used when no tasks names are provided when starting the build. |
|
fun <T> Any.delegateClosureOf(action: T.() -> Unit): Closure<Unit>
Adapts a Kotlin function to a Groovy Closure that operates on the configured Closure delegate. |
|
fun Project.dependencies(configuration: DependencyHandlerScope.() -> Unit): Unit
Configures the dependencies for this project. |
|
fun Project.distributions(configure: DistributionContainer.() -> Unit): Unit
Configures the distributions extension. |
|
fun Project.ear(configure: EarPluginConvention.() -> Unit): Unit
Configures the ear convention. |
|
fun Project.eclipse(configure: EclipseModel.() -> Unit): Unit
Configures the eclipse extension. |
|
fun Project.findbugs(configure: FindBugsExtension.() -> Unit): Unit
Configures the findbugs extension. |
|
fun Project.flavors(configure: FlavorContainer.() -> Unit): Unit
Configures the flavors extension. |
|
fun Project.gradleKotlinDsl(): Dependency
Creates a dependency on the API of the current version of the Gradle Kotlin DSL. |
|
fun Project.gradlePlugin(configure: GradlePluginDevelopmentExtension.() -> Unit): Unit
Configures the gradlePlugin extension. |
|
fun Project. |
|
fun Project.groovyRuntime(configure: GroovyRuntime.() -> Unit): Unit
Configures the groovyRuntime extension. |
|
fun Project.idea(configure: IdeaModel.() -> Unit): Unit
Configures the idea extension. |
|
fun Project.jacoco(configure: JacocoPluginExtension.() -> Unit): Unit
Configures the jacoco extension. |
|
fun Project.java(configure: JavaPluginConvention.() -> Unit): Unit
Configures the java convention. |
|
fun Project.javaScript(configure: JavaScriptExtension.() -> Unit): Unit
Configures the javaScript extension. |
|
fun Project.jdepend(configure: JDependExtension.() -> Unit): Unit
Configures the jdepend extension. |
|
fun Project.maven(configure: MavenPluginConvention.() -> Unit): Unit
Configures the maven convention. |
|
fun Project.osgi(configure: OsgiPluginConvention.() -> Unit): Unit
Configures the osgi convention. |
|
fun Project.platforms(configure: PlatformContainer.() -> Unit): Unit
Configures the platforms extension. |
|
fun Project.playConfigurations(configure: PlayPluginConfigurations.() -> Unit): Unit
Configures the playConfigurations extension. |
|
fun Project.pmd(configure: PmdExtension.() -> Unit): Unit
Configures the pmd extension. |
|
fun Project.projectReports(configure: ProjectReportsPluginConvention.() -> Unit): Unit
Configures the projectReports convention. |
|
fun <T> Project.
Creates a PropertyState that holds values of the given type T. |
|
operator fun Project.provideDelegate(any: Any?, property: KProperty<*>): PropertyDelegate
Locates a property on Project. |
|
fun Project.publishing(configure: PublishingExtension.() -> Unit): Unit
Configures the publishing extension. |
|
fun Project.reporting(configure: ReportingExtension.() -> Unit): Unit
Configures the reporting extension. |
|
fun Project.repositories(configuration: RepositoryHandler.() -> Unit): Unit
Configures the repositories for this project. |
|
fun Project.scalaRuntime(configure: ScalaRuntime.() -> Unit): Unit
Configures the scalaRuntime extension. |
|
fun Project.signing(configure: SigningExtension.() -> Unit): Unit
Configures the signing extension. |
|
fun <type : Task> Project.task(name: String, configuration: type.() -> Unit): type
Creates a Task with the given name and type, configures it with the given configuration action, and adds it to this project tasks container. fun <type : Task> Project.task(name: String): type
Creates a Task with the given name and type, and adds it to this project tasks container. fun <T : Task> Project.task(name: String, type: KClass<T>, configuration: T.() -> Unit): T fun Project.task(name: String, configuration: Task.() -> Unit): DefaultTask
Creates a Task with the given name and DefaultTask type, configures it with the given configuration action, and adds it to this project tasks container. |
|
fun <T : Any> ExtensionAware.the(extensionType: KClass<T>): T
Returns the extension of the specified extensionType. |
|
fun <T : Any> Project.the(extensionType: KClass<T>): T
Returns the plugin convention or extension of the specified type. |
|
fun Project.toolChains(configure: NativeToolChainRegistry.() -> Unit): Unit
Configures the toolChains extension. |
|
fun Project.visualStudio(configure: VisualStudioRootExtension.() -> Unit): Unit
Configures the visualStudio extension. |
|
fun Project.war(configure: WarPluginConvention.() -> Unit): Unit
Configures the war convention. |
|
fun <ConventionType : Any, ReturnType> Any.withConvention(conventionType: KClass<ConventionType>, function: ConventionType.() -> ReturnType): ReturnType
Evaluates the given function against the convention plugin of the given conventionType. |
|
fun <T> Any.withGroovyBuilder(builder: GroovyBuilderScope.() -> T): T
Executes the given builder against this object's GroovyBuilderScope. |
|
fun Project.xcode(configure: XcodeRootExtension.() -> Unit): Unit
Configures the xcode extension. |