This message was deleted.
# community-support
s
This message was deleted.
l
I believe that’s because you are not really setting an artifact but instead changing the
type
of those found by default. What happens if you replace
artifacts.each
with
artifact
to actually define the artifact you want.
c
Tried that first… seems to have the same effect
l
Ugh, then it is not intended. Can you file an issue please?
c
Sure
t
This is how Gradle parses the string notation: https://github.com/gradle/gradle/blob/master/subprojects/dependency-management/src[…]e/api/internal/notations/DependencyStringNotationConverter.java and it delegates type and classifier to https://github.com/gradle/gradle/blob/dc9faf1ca64fc86506dd9b8f5461b05b468241cb/sub[…]pi/internal/artifacts/dsl/dependencies/ModuleFactoryHelper.java There you can see that it explicitly set
transitive = false
when a type is provided, so I assume you'd have to do the same in your code.
c
Sorry, brain got in the way… I obviously meant ‘extension’ here in the Groovy code. Will try to get this right in the actual issue.
l
@Thomas Broyer Thanks for looking in the code, that means assumptions on my side were wrong. And of course changing that is going to be interesting. Thanks @Chris for the issue.