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

Turning on project{} (and warnings for javaProject/kotlinProject).

This commit is contained in:
Cedric Beust 2016-02-04 22:38:49 +04:00
parent a118d3680b
commit 44bc37881e
5 changed files with 22 additions and 13 deletions

View file

@ -76,6 +76,7 @@ class JavaPlugin @Inject constructor(val javaCompiler: JavaCompiler)
@Directive
public fun javaProject(vararg projects: Project, init: JavaProject.() -> Unit): JavaProject {
return JavaProject().apply {
warn("javaProject{} is deprecated, please use project{}")
init()
(Kobalt.findPlugin(JvmCompilerPlugin.PLUGIN_NAME) as JvmCompilerPlugin)
.addDependentProjects(this, projects.toList())

View file

@ -142,6 +142,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors)
@Directive
fun kotlinProject(vararg projects: Project, init: KotlinProject.() -> Unit): KotlinProject {
return KotlinProject().apply {
warn("kotlinProject{} is deprecated, please use project{}")
init()
(Kobalt.findPlugin(JvmCompilerPlugin.PLUGIN_NAME) as JvmCompilerPlugin)
.addDependentProjects(this, projects.toList())