Hey there, I am trying to set a useful title/name ...
# community-support
b
Hey there, I am trying to set a useful title/name for my jacoco reports. My project structure looks like this:
Copy code
services:serviceA:api
services:serviceB:kafkaProcessor
services:serviceB:api
The current titles of the Jacoco reports are unfortunately not useful right now. Do you know a way to set a useful name? I would love to use
parent!!.name
v
You should probably anyway rename your projects. As far as I remember you get serious but subtly problems if multiple projects have the same name.
b
I know the issue about the similar project names, but for whatever reason I never ran into it, with this very project
v
Besides that even if you do not get problems in Gradle directly, having a jar file called
api-1.2.3.jar
is also not too meaningful and can easily clash. 🙂
1
b
So far so good. Our graalvm builds are working rocksolid
v
🤷‍♂️
Besides that, just set the
projectName
property on the
JacocoReport
task and it should do what I want I think
b
Copy code
projectName.value(getProject().getName()).disallowChanges();
Nope 😞
Copy code
> Could not create task ':services:serviceA:api:jacocoTestReport'.
   > The value for task ':services:serviceA:api:jacocoTestReport' property 'reportProjectName' cannot be changed any further.
v
Oh, I see, then I guess you cannot change it 😞
b
😞 Okay. Thank you for your feedback!
v
Sounds like a feature request. No idea why they disallowed changes on the property, and especially then did not make it a
Provider
right away.