Script compilation errors: Line 10: task stopTomcat(type:Exec) { ^ Expecting ')' Line 10: task stopTomcat(type:Exec) { ^ Expecting an element Line 10: task stopTomcat(type:Exec) { ^ Expecting an element Line 10: task stopTomcat(type:Exec) { ^ Function invocation 'task(...)' expected Line 10: task stopTomcat(type:Exec) { ^ None of the following functions can be called with the arguments supplied: public abstract fun task(name: String!): Task! defined in org.gradle.api.Project public abstract fun task(name: String!, configureClosure: Closure<(raw) Any!>!): Task! defined in org.gradle.api.Project public abstract fun task(name: String!, configureAction: Action!): Task! defined in org.gradle.api.Project public abstract fun task(args: (Mutable)Map!, name: String!): Task! defined in org.gradle.api.Project public abstract fun task(args: (Mutable)Map!, name: String!, configureClosure: Closure<(raw) Any!>!): Task! defined in org.gradle.api.Project Line 10: task stopTomcat(type:Exec) { ^ Function invocation 'type(...)' expected Line 10: task stopTomcat(type:Exec) { ^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun ObjectConfigurationAction.type(pluginClass: KClass<*>): ObjectConfigurationAction defined in org.gradle.kotlin.dsl Line 10: task stopTomcat(type:Exec) { ^ Classifier 'Exec' does not have a companion object, and thus must be initialized here Line 11: workingDir '../tomcat/bin' ^ Unexpected tokens (use ';' to separate expressions on the same line) Line 11: workingDir '../tomcat/bin' ^ Unresolved reference: workingDir Line 14: commandLine 'cmd', '/c', 'stop.bat' ^ Unexpected tokens (use ';' to separate expressions on the same line) Line 14: commandLine 'cmd', '/c', 'stop.bat' ^ Unresolved reference: commandLine Line 17: commandLine './stop.sh' ^ Unexpected tokens (use ';' to separate expressions on the same line) Line 17: commandLine './stop.sh' ^ Unresolved reference: commandLine Line 20: standardOutput = new ByteArrayOutputStream() ^ Expecting an expression Line 20: standardOutput = new ByteArrayOutputStream() ^ Unresolved reference: standardOutput Line 20: standardOutput = new ByteArrayOutputStream() ^ Unresolved reference: new Line 23: ext.output = { ^ Unresolved reference: output Line 24: return standardOutput.toString() ^ 'return' is not allowed here Line 24: return standardOutput.toString() ^ Unresolved reference: standardOutput 20 errors