Slackbot
07/28/2022, 8:46 AMSatyarth Sampath
07/28/2022, 8:48 AMmaven-publish
tasks which leads to a few files changing. My assertions are manually parse the output files to determine if the changes reflect. The API provided by testkit can help confirm the task status.
But it would be great if I could check the config setup for the task too.Vampire
07/28/2022, 8:53 AMSatyarth Sampath
07/28/2022, 9:01 AMSatyarth Sampath
07/28/2022, 9:05 AMVampire
07/28/2022, 9:44 AMSatyarth Sampath
07/28/2022, 11:10 AMVampire
07/28/2022, 12:02 PMVampire
07/28/2022, 12:05 PMJohn
07/28/2022, 2:51 PMJohn
07/28/2022, 2:51 PMval rootProject = ProjectBuilder.builder()
.build() as ProjectInternal
val subProject = ProjectBuilder.builder()
.withParent(rootProject)
.build() as ProjectInternal
subProject.plugins.apply(JavaPlugin::class.java)
subProject.plugins.apply(MyPlugin::class.java)
subProject.evaluate()
rootProject.evaluate()
assertThat(subProject.tasks.getByName("myTask")).isNotNull()
John
07/28/2022, 2:53 PMVampire
07/28/2022, 4:31 PMSatyarth Sampath
07/29/2022, 6:33 AMSatyarth Sampath
07/29/2022, 6:35 AMSatyarth Sampath
07/29/2022, 6:36 AMJohn
07/29/2022, 2:39 PM