Я следую официальному руководству по началу работы с Grail https://docs.grails.org/3.3.9/guide/gettingStarted.html для запуска приложения hello world.
Однако, когда я запускаю команду grails create-app helloworld --profile=web
, я получаю следующую ошибку:
| Error Error initializing classpath: startup failed:
build file '/Users/sdicola/build.gradle': 3: expecting "interface", found '<newline>' @ line 3, column 20.
@buildRepositories@
^
1 error
(NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
build file '/Users/sdicola/build.gradle': 3: expecting "interface", found '<newline>' @ line 3, column 20.
@buildRepositories@
^
1 error
| Error Error initializing classpath: startup failed:
build file '/Users/sdicola/build.gradle': 3: expecting "interface", found '<newline>' @ line 3, column 20.
@buildRepositories@
^
1 error
Я использую следующие версии ПО:
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
------------------------------------------------------------
Gradle 5.3.1
------------------------------------------------------------
Build time: 2019-03-28 09:09:23 UTC
Revision: f2fae6ba563cfb772c8bc35d31e43c59a5b620c3
Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_201 (Oracle Corporation 25.201-b09)
OS: Mac OS X 10.13.6 x86_64
| Grails Version: 4.0.0.M2
| JVM Version: 1.8.0_201