Skip to content

Commit 2b863ca

Browse files
Merge pull request #172 from adobe/dev
Dev -> Main
2 parents 26f4813 + d9fab84 commit 2b863ca

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

android/aepsdk-gradle-plugin/aepsdk-gradle-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
val PLUGIN_VERSION = "3.4.2"
1+
val PLUGIN_VERSION = "3.4.3"
22
// version and used for Maven local publishing
33
version = PLUGIN_VERSION
44

android/aepsdk-gradle-plugin/aepsdk-gradle-plugin/src/main/kotlin/com/adobe/marketing/mobile/gradle/AEPLibraryPlugin.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,12 @@ class AEPLibraryPlugin : Plugin<Project> {
297297
val assemblePhone = project.tasks.named(BuildConstants.Tasks.ASSEMBLE_PHONE)
298298
val configureJReleaserVariables = project.tasks.named(BuildConstants.Tasks.CONFIGURE_JRELEASER_VARIABLES)
299299
if (extension.enablePlayConsoleVerification.getOrElse(false)) {
300-
assemblePhone.configure{dependsOn((BuildConstants.Tasks.CONFIGURE_PLAY_CONSOLE_VERIFICATION))}
300+
project.tasks.named(BuildConstants.Tasks.BUNDLE_PHONE_RELEASE_AAR).configure { dependsOn(BuildConstants.Tasks.CONFIGURE_PLAY_CONSOLE_VERIFICATION) }
301301
}
302302
project.tasks.named(BuildConstants.Tasks.PUBLISH).configure { dependsOn(assemblePhone) }
303-
project.tasks.named(BuildConstants.Tasks.PUBLISH_MAVEN_LOCAL).configure { dependsOn(assemblePhone)}
304-
project.tasks.named(BuildConstants.Tasks.PUBLISH_RELEASE_MAVEN_LOCAL).configure { dependsOn(assemblePhone)}
305-
project.tasks.named(BuildConstants.Tasks.PUBLISH).configure { dependsOn(configureJReleaserVariables)}
303+
project.tasks.named(BuildConstants.Tasks.PUBLISH_MAVEN_LOCAL).configure { dependsOn(assemblePhone) }
304+
project.tasks.named(BuildConstants.Tasks.PUBLISH_RELEASE_MAVEN_LOCAL).configure { dependsOn(assemblePhone) }
305+
project.tasks.named(BuildConstants.Tasks.PUBLISH).configure { dependsOn(configureJReleaserVariables) }
306306
}
307307

308308
private fun configureSpotless(project: Project, extension: AEPLibraryExtension) {

android/aepsdk-gradle-plugin/aepsdk-gradle-plugin/src/main/kotlin/com/adobe/marketing/mobile/gradle/BuildConstants.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ object BuildConstants {
135135
const val PUBLISH_RELEASE_MAVEN_LOCAL = "publishReleasePublicationToMavenLocal"
136136
const val SIGN_RELEASE = "signReleasePublication"
137137
const val CONFIGURE_JRELEASER_VARIABLES = "configureJReleaserVariables"
138+
const val BUNDLE_PHONE_RELEASE_AAR = "bundlePhoneReleaseAar"
138139
const val FUNCTIONAL_TEST_COVERAGE_REPORT = "functionalTestsCoverageReport"
139140
const val CREATE_PHONE_DEBUG_COVERAGE_REPORT = "createPhoneDebugCoverageReport"
140141
const val UNIT_TEST_COVERAGE_REPORT = "unitTestCoverageReport"

android/aepsdk-gradle-plugin/aepsdk-gradle-plugin/src/main/kotlin/com/adobe/marketing/mobile/gradle/PublishPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PublishPlugin : Plugin<Project> {
3232
// To cover all cases, depend on every PublishToMavenRepository task in the project.
3333
project.tasks
3434
.withType(org.gradle.api.publish.maven.tasks.PublishToMavenRepository::class.java)
35-
.configureEach { dependsOn(project.tasks.named("bundlePhoneReleaseAar")) }
35+
.configureEach { dependsOn(project.tasks.named(BuildConstants.Tasks.BUNDLE_PHONE_RELEASE_AAR)) }
3636
}
3737
}
3838

0 commit comments

Comments
 (0)