This message was deleted.
# develocity
s
This message was deleted.
d
Hello Tom Specifying inputs in a
pom.xml
of a Maven sub-project should work. What kind of error do you get when trying to do this? Also, I'm wondering what your specific use case is here. As I understand it, you have some files reachable from the root of your project via some path
a/b/c.txt
and you would like to configure those files as inputs for all test goals in your various sub-projects. Is that the use case?
t
Yes, you have the use case correct. I got the following error
Copy code
[ERROR] Gradle Enterprise project configuration must be located in the <build><pluginManagement> block, but was instead found in the <build><plugins> block of composite-container-tests
I actually really only need this working from one module, right now, so I just made it work for that one. But it means in the future if I need a second module and the relative path to the root is different I’ll have a problem.
d
Actually, you should put the input configuration under
build > pluginManagement > plugins > plugin (gradle-enterprise-maven-extension) > configuration > gradleEnterprise > plugins > plugin (maven-surefire-plugin) > inputs > ...
just as you do in root pom.
t
interesting. I may need to try this but I did not think you could add pluginmanagement to a child pom.
Thanks!