Fix snapshot detection
This commit is contained in:
parent
357e4c03be
commit
ddbb128692
@ -87,20 +87,18 @@ open class KScienceProjectPlugin : Plugin<Project> {
|
||||
override fun apply(target: Project): Unit = target.run {
|
||||
apply<ChangelogPlugin>()
|
||||
|
||||
|
||||
|
||||
if (!isSnapshot()) {
|
||||
configure<ChangelogPluginExtension> {
|
||||
version = project.version.toString()
|
||||
}
|
||||
}
|
||||
|
||||
apply<DokkaPlugin>()
|
||||
apply<BinaryCompatibilityValidatorPlugin>()
|
||||
|
||||
if (isSnapshot()) {
|
||||
configure<ApiValidationExtension> {
|
||||
validationDisabled = true
|
||||
afterEvaluate {
|
||||
if (isSnapshot()) {
|
||||
configure<ApiValidationExtension> {
|
||||
validationDisabled = true
|
||||
}
|
||||
} else {
|
||||
configure<ChangelogPluginExtension> {
|
||||
version = project.version.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user