我在这里查看了 thorntail 示例。
我创建了这个项目:
frontoffice
├── gradle.properties
├── build.gradle
└── gradle
└── thorntail.gradle
thorntail.gradle
是:
buildscript {
String thorntailVersion = System.getProperty('thorntailVersion') ?: VERSION_THORNTAIL
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath "io.thorntail:thorntail-gradle-plugin:$thorntailVersion"
}
}
和build.gradle
:
apply from: "$projectDir/gradle/thorntail.gradle"
apply plugin: 'thorntail'
我越来越:
➜ prjt git:(master) ✗ gradle clean compile
FAILURE: Build failed with an exception.
* Where:
Build file '/home/jeusdi/projects/espaidoc/frontoffice/build.gradle' line: 10
* What went wrong:
A problem occurred evaluating project ':frontoffice'.
**> Plugin with id 'thorntail' not found.**
有任何想法吗?