You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a project that also consumes the java-test-fixtures plugin, then generated plugin manifest has a cyclic dependency to itself.
Test Case
build.gradle
plugins {
id 'java-test-fixtures'
id 'org.jenkins-ci.jpi' version '0.40.0'
}
group ='sample-group'
version ='1.0.0'jenkinsPlugin {
coreVersion ='2.263.1'
}
dependencies {
testImplementation 'org.jenkins-ci.plugins:git:4.0.1'
}
Thanks for reporting this with a test case @roguexz!
The problem is from the way we set up configurations. Basically we had an assumption that any runtime configurations were intended to be optional features. In the case of testFixtures*, that's not true, so now it will be excluded.
This has been published as 0.41.0-rc.1. Feel free to try it out and if you could report back, I'd appreciate it.
Works like a charm! Thank you for fixing it right away!! 😃
The checkAccessModifier task caught me by surprise. I understand its importance and will make necessary changes, none-the-less it might be worthwhile to consider it as a permissible option that just logs warnings before making it mandatory in the next release. The alternative is to just disable the task temporarily. So, I am good with this RC.
Problem
If you have a project that also consumes the java-test-fixtures plugin, then generated plugin manifest has a cyclic dependency to itself.
Test Case
build.gradle
Build & inspect the plugin manifest file.
Notice how the main plugin (
sample-jpi
) is also listed as a dependency.The text was updated successfully, but these errors were encountered: