Prachis
(Shahare)
June 20, 2024, 4:08pm
1
Hi ,
I am getting below error when I am trying to build gradle application.
Could not set unknown property ‘archiveName’ for task ‘:testApp:bootJar’ of type org.springframework.boot.gradle.tasks.bundling.BootJar.
Can anyone please help me out.
I am using gradle version 8.5. Java version 17 and springboot version 3.0.0
Thanks in advance
Vampire
(Björn Kautler)
June 20, 2024, 9:56pm
2
What is unclear with the error?
Prachis
(Shahare)
June 21, 2024, 9:18am
3
I am not able to build or run the application when I am trying build the application it is giving me above error
Vampire
(Björn Kautler)
June 21, 2024, 9:47am
4
Yeah, but what do you not understand?
The error message is quite clear imho.
Prachis
(Shahare)
June 21, 2024, 10:13am
5
Yeah actually I am not able to resolve the issue…If you have solution can you please help me with it?
Vampire
(Björn Kautler)
June 21, 2024, 10:37am
6
It tells you you try to set the archiveName
property of the bootJar
task which does not exist.
So solution is simple, do not try to set a property that does not exist (since Gradle 8.0).
Prachis
(Shahare)
June 21, 2024, 11:39am
7
Thank you so much for your solution…It worked
1 Like