Rework ExampleSubplugin for the new subplugins API

This commit is contained in:
Sergey Igushkin
2020-06-06 00:29:12 +03:00
parent a2e4b52747
commit 66a59df7de
7 changed files with 76 additions and 17 deletions
@@ -21,14 +21,18 @@ class SubpluginsIT : BaseGradleIT() {
project.build("compileKotlin", "build") {
assertSuccessful()
assertContains("ExampleSubplugin loaded")
assertContains("ExampleLegacySubplugin loaded")
assertContains("Project component registration: exampleValue")
assertContains("Project component registration: exampleLegacyValue")
assertTasksExecuted(":compileKotlin")
}
project.build("compileKotlin", "build") {
assertSuccessful()
assertContains("ExampleSubplugin loaded")
assertContains("ExampleLegacySubplugin loaded")
assertNotContains("Project component registration: exampleValue")
assertNotContains("Project component registration: exampleLegacyValue")
assertTasksUpToDate(":compileKotlin")
}
}
@@ -10,6 +10,7 @@ buildscript {
}
apply plugin: "kotlin"
apply plugin: "kotlin-example-subplugin"
repositories {
mavenLocal()