diff --git a/semver-project-gradle-plugin/main/kotlin/com/javiersc/semver/project/gradle/plugin/valuesources/VersionValueSource.kt b/semver-project-gradle-plugin/main/kotlin/com/javiersc/semver/project/gradle/plugin/valuesources/VersionValueSource.kt index d15231d8..de634be1 100644 --- a/semver-project-gradle-plugin/main/kotlin/com/javiersc/semver/project/gradle/plugin/valuesources/VersionValueSource.kt +++ b/semver-project-gradle-plugin/main/kotlin/com/javiersc/semver/project/gradle/plugin/valuesources/VersionValueSource.kt @@ -16,8 +16,8 @@ import com.javiersc.semver.project.gradle.plugin.internal.tagPrefixProperty import com.javiersc.semver.project.gradle.plugin.semverExtension import com.javiersc.semver.project.gradle.plugin.tasks.CreateSemverTagTask import com.javiersc.semver.project.gradle.plugin.tasks.PushSemverTagTask -import java.io.File import org.gradle.api.Project +import org.gradle.api.file.RegularFileProperty import org.gradle.api.provider.Property import org.gradle.api.provider.Provider import org.gradle.api.provider.ValueSource @@ -35,11 +35,11 @@ internal abstract class VersionValueSource : ValueSource - val gitDir: Property + val gitDir: RegularFileProperty val commitsMaxCount: Property val tagPrefixProperty: Property val projectTagPrefix: Property @@ -100,11 +100,8 @@ internal abstract class VersionValueSource : ValueSource = - project.provider { semverExtension.gitDir.get().asFile } - parameters.versionMapper.set(semverExtension.versionMapper) - parameters.gitDir.set(gitDir) + parameters.gitDir.set(semverExtension.gitDir) val commitsMaxCount: Int = project.commitsMaxCount.orNull ?: semverExtension.commitsMaxCount.get() parameters.commitsMaxCount.set(commitsMaxCount)