Slackbot
12/09/2023, 11:59 AMAdam
12/09/2023, 12:32 PMgradlePlugin {} configuration? And just double check that the ID of the registered plugin matches the ID that you're applying?Adam
12/09/2023, 12:34 PMcheorges
12/09/2023, 1:29 PMgradlePlugin {} configure.
If I move the test into the sourceSet test instead of functionalTest it works like a charm.
gradlePlugin {
plugins {
register("helm") {
id = "com.company.gradleplugin.id"
implementationClass = "com.company.gradleplugin.helm.HelmPlugin"
}
}
}
I will try to setup hint with testSourceSets(...)Vampire
12/09/2023, 8:01 PMwithPluginClassPath() requires that a specific file with the classpath is found in the classpath. This is usually generated by a task that is registered by the https://docs.gradle.org/current/userguide/java_gradle_plugin.html, do you use that?cheorges
12/10/2023, 6:30 PMbuild/pluginUnderTestMetadata/plugin-under-test-metatadata.properties) is not generated by the functionalTest task only for the test task.Vampire
12/10/2023, 9:25 PMVampire
12/10/2023, 9:25 PMgradlePlugin {
testSourceSet(sourceSets["functionalTest"])
}Vampire
12/10/2023, 9:28 PMgradleTestKit() dependency for you to ...Implementation and the pluginUnderTestMetadata to ...RuntimeOnlyVampire
12/10/2023, 9:29 PMtestSourceSets(...) instead, test is removed and thus will neither have test kit dependency nor the plugin under test metadata dependencyVampire
12/10/2023, 9:40 PMcheorges
12/22/2023, 11:34 AM