This message was deleted.
# community-support
s
This message was deleted.
m
My groovy is a bit rusty but I believe you're looking for
mainClassName
Mmm scratch that, doc says
mainClass = 'foo'
https://docs.gradle.org/current/userguide/application_plugin.html
Does this work?
Copy code
setMainClassName('<http://com.company.project.pqr.app.app|com.company.project.pqr.app.app>')
a
r
replacing mainClass with mainClassName worked, I think my teammate is using a different version of gradle. They are using IntelliJ so probably they don't know what version of gradle they are running
v
I strongly recommend using Kotlin DSL. That immediately makes your build scripts type-safe and enables amazingly better IDE support. Regarding Gradle version when using the IDE, I suspect your project does not use the Gradle wrapper. Imho any build that does not have the 4 Gradle wrapper files has a bug. Because they define exactly which Gradle version to use, so the IDE also uses the correct version. If you do not have the wrapper files (or do not use the wrapper to execute the build) the build might behave differently with different Gradle versions or even be invalid syntax like you had here.
1