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:
parent
a118d3680b
commit
44bc37881e
5 changed files with 22 additions and 13 deletions
|
@ -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())
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue