In this fragment of the file, the build.gradlefirst link to ${appengineVersion}(line 11) causes an error. But the second link (line 27) works fine. Why is this?
To make it work, I had to explicitly indicate the version number on line 11 ... which means that I will forget to update it next time. How to fix it?
apply plugin: 'war'
apply plugin: 'appengine'
def appengineVersion = "1.9.48"
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.google.appengine:gradle-appengine-plugin:${appengineVersion}"
}
}
war {
from 'src/main/webUI/app'
exclude('src/main/webUI/app/node_modules')
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
appengineSdk "com.google.appengine:appengine-java-sdk:${appengineVersion}"
compile "javax.servlet:servlet-api:2.5"
...
source
share