Rework ExampleSubplugin for the new subplugins API
This commit is contained in:
+4
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -10,6 +10,7 @@ buildscript {
|
||||
}
|
||||
|
||||
apply plugin: "kotlin"
|
||||
apply plugin: "kotlin-example-subplugin"
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
||||
Reference in New Issue
Block a user