Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val PLUGIN_VERSION = "3.4.2"
val PLUGIN_VERSION = "3.4.3"
// version and used for Maven local publishing
version = PLUGIN_VERSION

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ class AEPLibraryPlugin : Plugin<Project> {
val assemblePhone = project.tasks.named(BuildConstants.Tasks.ASSEMBLE_PHONE)
val configureJReleaserVariables = project.tasks.named(BuildConstants.Tasks.CONFIGURE_JRELEASER_VARIABLES)
if (extension.enablePlayConsoleVerification.getOrElse(false)) {
assemblePhone.configure{dependsOn((BuildConstants.Tasks.CONFIGURE_PLAY_CONSOLE_VERIFICATION))}
project.tasks.named(BuildConstants.Tasks.BUNDLE_PHONE_RELEASE_AAR).configure { dependsOn(BuildConstants.Tasks.CONFIGURE_PLAY_CONSOLE_VERIFICATION) }
}
project.tasks.named(BuildConstants.Tasks.PUBLISH).configure { dependsOn(assemblePhone) }
project.tasks.named(BuildConstants.Tasks.PUBLISH_MAVEN_LOCAL).configure { dependsOn(assemblePhone)}
project.tasks.named(BuildConstants.Tasks.PUBLISH_RELEASE_MAVEN_LOCAL).configure { dependsOn(assemblePhone)}
project.tasks.named(BuildConstants.Tasks.PUBLISH).configure { dependsOn(configureJReleaserVariables)}
project.tasks.named(BuildConstants.Tasks.PUBLISH_MAVEN_LOCAL).configure { dependsOn(assemblePhone) }
project.tasks.named(BuildConstants.Tasks.PUBLISH_RELEASE_MAVEN_LOCAL).configure { dependsOn(assemblePhone) }
project.tasks.named(BuildConstants.Tasks.PUBLISH).configure { dependsOn(configureJReleaserVariables) }
}

private fun configureSpotless(project: Project, extension: AEPLibraryExtension) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ object BuildConstants {
const val PUBLISH_RELEASE_MAVEN_LOCAL = "publishReleasePublicationToMavenLocal"
const val SIGN_RELEASE = "signReleasePublication"
const val CONFIGURE_JRELEASER_VARIABLES = "configureJReleaserVariables"
const val BUNDLE_PHONE_RELEASE_AAR = "bundlePhoneReleaseAar"
const val FUNCTIONAL_TEST_COVERAGE_REPORT = "functionalTestsCoverageReport"
const val CREATE_PHONE_DEBUG_COVERAGE_REPORT = "createPhoneDebugCoverageReport"
const val UNIT_TEST_COVERAGE_REPORT = "unitTestCoverageReport"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PublishPlugin : Plugin<Project> {
// To cover all cases, depend on every PublishToMavenRepository task in the project.
project.tasks
.withType(org.gradle.api.publish.maven.tasks.PublishToMavenRepository::class.java)
.configureEach { dependsOn(project.tasks.named("bundlePhoneReleaseAar")) }
.configureEach { dependsOn(project.tasks.named(BuildConstants.Tasks.BUNDLE_PHONE_RELEASE_AAR)) }
}
}

Expand Down