New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform dependencies not possible in dependency block of test suite plugin #19065
Comments
It is the same also for normal build scripts, not only precompiled script plugins. Work-arounds are to use something like implementation(project.dependencies.platform(project.dependencies.project(":myPlatform"))) within the test suite dependencies block, or to use the normal dependencies block like with val integrationtestImplementation by configurations.getting
dependencies {
integrationtestImplementation(platform(project(":myPlatform")))
} |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be scheduled for a (potentially) final review and might be closed afterwards (if no further activity occurs). If you feel this is something you could contribute to, please have a look at our Contributor Guide. Thank you for your contribution. |
Still relevant |
Any updates on this? We just tried to use the jvm-test-suite plugin, but the lack of support for platform has been an unexpected roadblock. We have to go back to custom source sets for integration tests instead of using this cool new plugin. |
Can somebody give a small groovy example, how this should work with 7.6? Because when I use
or
in a convention plugin everything works as intended, but when using
I get the following errors:
Might that be a problem in my platform definition/creation? |
@LarsKaulen can you put together a reproducer? I just tried this and I'm not seeing that problem. |
I'm investigating the issue with convention plugins. Thanks for the reproducer. |
@LarsKaulen - Thanks for following up on this. There was indeed a problem using Test Suites and platforms which will be fixed in the next 7.x release (see the attached PR #23535). |
While testing the new test-suite plugin, I tried to add a dependency to my platform in the new dependency block using kotlin dsl
Expected Behavior
Expecting the dependency below to compile
Current Behavior
platform dependency does not compile in script plugin in buildSrc
Your Environment
buildSrc
The text was updated successfully, but these errors were encountered: