title: gradle issue "main" groovy.lang.MissingPropertyException: No such property: baseDir for class: org.apache.catalina.core.StandardEngine
body: <p>It is likely a simple issue but I am not seeing it right now.</p>
  
  <p>The command that I run is gradlew.bat appRun --stacktrace
  My Expectation: That I will have a running web application. (Or at minimum not get any error message)</p>
  
  <p>My Actual: I get an stacktrace error message that stated</p>
  
  <p><strong>"main" groovy.lang.MissingPropertyException: No such property: baseDir for class: org.apache.catalina.core.StandardEngine</strong></p>
  
  <p>here is my build script</p>
  
  <pre><code>buildscript {
  repositories {
      maven {
          url "https://plugins.gradle.org/m2/"
      }
  }
  dependencies {
      classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE"
  }
  
  }
  
  apply plugin: 'org.springframework.boot'
  apply plugin: 'java'
  apply plugin: 'war'
  apply from: 'gretty.plugin'
  apply plugin: 'idea'
  
  group 'com.mycom'
  version tpos_version
  description 'TPOS'
  
  
  idea {
      project {
      languageLevel = '1.8'
      }
      module {
          downloadJavadoc = true
          downloadSources = true
      }
  }
  sourceCompatibility = 1.8
  targetCompatibility = 1.8
  
  
  gretty {
      httpPort = 9070
      contextPath = 'rus-tpos'
      servletContainer = 'tomcat7'
      realm = 'auth'
      realmConfigFile = 'tomcat-users.xml'
  }
  
  
  
  repositories {
      mavenLocal()
      maven {
          url nexusReadRepoUrl
          credentials {
          username nexusReadUsrName
          password nexusReadUsrPwd
          }
      }
      jcenter()
  
  }
  
  
  configurations.all {
  exclude group: 'commons-logging', module: 'commons-logging'
  }
  
  dependencies {
      compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: spring_boot_version
  compile group: 'org.springframework.boot', name: 'spring-boot-configuration-processor', version: spring_boot_version
  compile group: 'org.springframework.hateoas', name: 'spring-hateoas', version: '0.23.0.RELEASE'
  
  providedRuntime group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: spring_boot_version
  testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: spring_boot_version
  
  compile group: 'org.yaml', name: 'snakeyaml', version: '1.18'
  compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
  compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
  
  compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
  compile group: 'com.google.guava', name: 'guava', version: '16.0'
  compile group: 'com.jayway.jsonpath', name:'json-path', version:'2.2.0'
  
  compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jackson_version
  compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jackson_version
  compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jackson_version
  
  compile group: 'io.springfox', name: 'springfox-swagger2',version: '2.6.1'
  compile group: 'io.springfox', name: 'springfox-swagger-ui',version: '2.6.1'
  
  compile group: 'io.springfox', name:'springfox-petstore',version: '2.6.1'
  
  testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
  testCompile group: 'junit', name: 'junit', version: '4.12'
  }
  
  processResources {
  expand("application.version": version)
  }
  </code></pre>
  
  <p>I assume it deals with a tomcat maybe the line</p>
  
  <pre><code> providedRuntime group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: spring_boot_version
  </code></pre>
  
  <p>or in the gretty section but not sure please let me know what else I should provided and any assistance is appreciated</p>