GoogleCloudPlatform / app-gradle-plugin

The library has moved to https://github.com/GoogleCloudPlatform/appengine-plugins/tree/main/app-gradle-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use project variable in project definition

glaforge opened this issue · comments

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.

close as not planned. Please re-open if it's still relevant.