每次尝试构建时,我都会遇到以下错误:
Execution failed for task ':groovydoc'.
> groovydoc doesn't support the "noTimestamp" attribute
我似乎无法弄清楚是什么原因导致了此问题。我知道我以前在其他存储库中看到过它,并且在不对外部任何内容进行任何更改的情况下进行了修复。我也找不到与Google相符的内容。知道是什么原因造成的?
如果我运行gradle build --exclude-task groovydoc
,构建将顺利完成。但是,我想解决此问题,以免每次都掠过构建。
设置:
IintelliJ
Git
存储库位于BitBucket
Windows 10
Gradle v5.6.4
Groovy v2.5.11
Java 11
这是我的build.gradle
plugins {
id 'org.springframework.boot' version '2.3.0.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'groovy'
}
apply plugin: 'java-library'
apply plugin: 'custom-plugin'
group = 'com.project'
version = '0.0.1-SNAPSHOT'
description = 'my project'
sourceCompatibility = '11'
repositories {
maven { url("$artifactoryUrl/libs-release-candidate-local") }
maven { url("$artifactoryUrl/libs-snapshot-local") }
mavenCentral()
}
sourceSets {
sourceCompatibility = "${SOURCE_COMPATABILITY}"
targetCompatibility = "${TARGET_COMPATABILITY}"
}
compileJava {
sourceCompatibility = "${SOURCE_COMPATABILITY}"
targetCompatibility = "${TARGET_COMPATABILITY}"
}
dependencies {
implementation "custom..."
implementation 'org.springframework.boot:spring-boot-starter-web-services'
implementation 'org.codehaus.groovy:groovy:2.5.11'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
pipelineConfig {...
}
test {
useJUnitPlatform()
}