Gradle Javadoc SNAPSHOT版本

时间:2018-10-11 21:21:59

标签: gradle javadoc

我有一个Gradle任务,例如:

task generateGHPagesDocs(type: Javadoc, dependsOn: assemble) {
    source = sourceSets.main.allJava
    classpath = configurations.compile
    destinationDir = file('gh-pages/javadoc/')
    options.links = [ 'https://docs.oracle.com/javase/8/docs/api/' ]
}

和类似的gradle.properties

group=com.xyz
version=1.0.1

运行./gradlew generatedGHPagesDoc时,Javadocs会说<project name> 1.0.1-SNAPSHOT API。这很奇怪,因为SNAPSHOT中没有version

这是为什么,如何消除-SNAPSHOT

0 个答案:

没有答案