Can't use project variable in project definition
glaforge opened this issue · comments
Guillaume Laforge commented
Because of this line to suggest users to upgrade their gradle build to use projectId
instead of project
, it's impossible to do the following:
appengine {
stage.artifact = "${buildDir}/libs/${project.name}-${project.version}-all.jar"
deploy {
projectId = project.name
version = project.version.replaceAll('.', '_')
}
}
In stage.artifact
I can use ${project.name}
without a problem.
But in the deploy
section, I can't use Gradle's project
variable because you override the getProject()
method.
Joe Wang commented
close as not planned. Please re-open if it's still relevant.