Could not set unknown property 'archiveBaseName' for task ':archiveProduct'

I get following error when i run gradle appRun:
Could not set unknown property ‘archiveBaseName’ for task ‘:archiveProduct’ of type org.gradle.api.tasks.bundling.Zip.
Looking at build.gradle didn’t gave anything, there is no task and no property with those names. Have no idea what is wrong here.

Gradle 4.10.3
------------------------------------------------------------

Build time:   2018-12-05 00:50:54 UTC
Revision:     e76905e3a1034e6f724566aeb985621347ff43bc

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_242 (AdoptOpenJDK 25.242-b08)
OS:           Mac OS X 10.15.4 x86_64

Thank you

That property was introduced in Gradle 5.1, but you are on 4.10.3.

If you don’t have a task called archiveProduct in your own build files, it could come from a third-party plugin that is not compatible with that version. If you are using the gretty plugin plugin, you will have to downgrade the plugin version to 2.x (see the “System requirements” section). Or upgrade Gradle of cause. If it is another plugin, check the documentation for it.

1 Like

Thank you very much, Bjorn. I just ended up upgrading my gradle version to 5.5