Skip to content

Commit 531bc3d

Browse files
committed
gradle publish plugin requires a string for the version
1 parent af4f38c commit 531bc3d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build.gradle

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ buildscript {
1212

1313
apply plugin: "com.gradle.plugin-publish"
1414
description = 'gradle-scoverage is a Gradle plugin for calculating code coverage using Scoverage'
15-
version = {
16-
if (project.hasProperty('version')) {
17-
return project.getProperty('version')
18-
} else {
19-
return '2.0.0-SNAPSHOT'
20-
}
15+
if (project.version == 'unspecified') {
16+
version = '2.0.0-SNAPSHOT'
2117
}
2218

2319
repositories {

0 commit comments

Comments
 (0)