File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
build-plugin/plugin/src/main/kotlin/net/thunderbird/gradle/plugin/app/versioning Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ class VersioningPlugin : Plugin<Project> {
3434 val printVersionInfoTaskName = " printVersionInfo$variantName "
3535
3636 tasks.register<PrintVersionInfoTask >(printVersionInfoTaskName) {
37- val versionInfo = getVersionInfo(variant).get( )
37+ val versionInfoProvider = getVersionInfo(variant)
3838
3939 applicationId = variant.applicationId
4040 applicationLabel = getApplicationLabel(variant)
41- versionCode = versionInfo. versionCode
42- versionName = versionInfo. versionName
43- versionNameSuffix = versionInfo. versionNameSuffix
41+ versionCode = versionInfoProvider.map { it. versionCode }
42+ versionName = versionInfoProvider.map { it. versionName }
43+ versionNameSuffix = versionInfoProvider.map { it. versionNameSuffix }
4444
4545 // Set outputFile only if provided via -PoutputFile=...
4646 project.findProperty(" outputFile" )?.toString()?.let { path ->
You can’t perform that action at this time.
0 commit comments