From 315451a15708350a8b4d1f02686dd4f8b0e75ce4 Mon Sep 17 00:00:00 2001 From: Vladislav Ermolin Date: Wed, 17 Jun 2026 17:49:49 +0300 Subject: [PATCH] Change package name to health.flo --- README.md | 8 ++++---- affectedmoduledetector/build.gradle | 2 +- .../AffectedModuleConfiguration.kt | 4 ++-- .../AffectedModuleDetector.kt | 16 +++++++-------- .../AffectedModuleDetectorPlugin.kt | 4 ++-- .../AffectedModuleTaskType.kt | 2 +- .../AffectedTestConfiguration.kt | 2 +- .../DependencyTracker.kt | 2 +- .../flo}/affectedmoduledetector/FileLogger.kt | 2 +- .../flo}/affectedmoduledetector/GitClient.kt | 20 +++++++++---------- .../InternalTaskType.kt | 2 +- .../affectedmoduledetector/ProjectGraph.kt | 2 +- .../commitshaproviders/CommitShaProvider.kt | 6 +++--- .../commitshaproviders/ForkCommit.kt | 6 +++--- .../commitshaproviders/PreviousCommit.kt | 6 +++--- .../SpecifiedBranchCommit.kt | 6 +++--- .../SpecifiedBranchCommitMergeBase.kt | 6 +++--- .../SpecifiedRawCommitSha.kt | 6 +++--- .../flo}/affectedmoduledetector/util/File.kt | 2 +- .../affectedmoduledetector/util/OsQuirks.kt | 2 +- .../AffectedModuleConfigurationTest.kt | 2 +- .../AffectedModuleDetectorImplTest.kt | 2 +- .../AffectedModuleDetectorIntegrationTest.kt | 4 ++-- .../AffectedModuleDetectorPluginTest.kt | 4 ++-- .../AffectedTestConfigurationTest.kt | 2 +- .../AttachLogsTestRule.kt | 2 +- .../InternalTaskTypeTest.kt | 2 +- .../ProjectGraphTest.kt | 2 +- .../commitshaproviders/ForkCommitTest.kt | 6 +++--- .../commitshaproviders/PreviousCommitTest.kt | 6 +++--- .../SpecifiedBranchCommitMergeBaseTest.kt | 6 +++--- .../SpecifiedBranchCommitTest.kt | 6 +++--- .../mocks/MockCommandRunner.kt | 6 +++--- .../mocks/MockCommitShaProvider.kt | 8 ++++---- .../rules/SetupAndroidProject.kt | 2 +- sample/build.gradle | 4 ++-- .../flo}/sample/AffectedTestsPlugin.kt | 4 ++-- .../flo}/sample/Dependencies.kt | 2 +- .../flo}/sample/tasks/AffectedTasksPlugin.kt | 8 ++++---- ...com.dropbox.affectedtasksplugin.properties | 1 - ...opbox.sample.AffectedTestPlugin.properties | 1 - .../health.flo.affectedtasksplugin.properties | 1 + ...h.flo.sample.AffectedTestPlugin.properties | 1 + sample/sample-app/build.gradle | 8 ++++---- .../detector/sample/ExampleAndroidTest.kt | 2 +- .../sample-app/src/main/AndroidManifest.xml | 4 ++-- .../flo}/detector/sample/MainActivity.kt | 2 +- .../src/main/res/layout/activity_main.xml | 4 ++-- .../flo}/detector/sample/ExampleUnitTest.kt | 2 +- sample/sample-core/build.gradle | 6 +++--- sample/sample-core/detekt-baseline.xml | 2 +- .../detector/sample_core/ExampleUnitTest.kt | 2 +- sample/sample-jvm-module/detekt-baseline.xml | 4 ++-- .../com/dropbox/sample_jvm_module/MyClass.kt | 4 ---- .../health/flo/sample_jvm_module/MyClass.kt | 4 ++++ sample/sample-util/build.gradle | 6 +++--- sample/sample-util/detekt-baseline.xml | 2 +- .../detector/sample_util/ExampleUnitTest.kt | 2 +- 58 files changed, 121 insertions(+), 121 deletions(-) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleConfiguration.kt (97%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleDetector.kt (97%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleDetectorPlugin.kt (98%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleTaskType.kt (95%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedTestConfiguration.kt (95%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/DependencyTracker.kt (98%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/FileLogger.kt (97%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/GitClient.kt (91%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/InternalTaskType.kt (96%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/ProjectGraph.kt (99%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/CommitShaProvider.kt (68%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/ForkCommit.kt (84%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/PreviousCommit.kt (64%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommit.kt (59%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBase.kt (74%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt (53%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/util/File.kt (93%) rename affectedmoduledetector/src/main/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/util/OsQuirks.kt (95%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleConfigurationTest.kt (99%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleDetectorImplTest.kt (99%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleDetectorIntegrationTest.kt (98%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt (98%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AffectedTestConfigurationTest.kt (97%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/AttachLogsTestRule.kt (96%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/InternalTaskTypeTest.kt (91%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/ProjectGraphTest.kt (98%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/ForkCommitTest.kt (93%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/PreviousCommitTest.kt (81%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBaseTest.kt (86%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitTest.kt (79%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/mocks/MockCommandRunner.kt (86%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/mocks/MockCommitShaProvider.kt (54%) rename affectedmoduledetector/src/test/kotlin/{com/dropbox => health/flo}/affectedmoduledetector/rules/SetupAndroidProject.kt (97%) rename sample/buildSrc/src/main/kotlin/{com/dropbox => health/flo}/sample/AffectedTestsPlugin.kt (87%) rename sample/buildSrc/src/main/kotlin/{com/dropbox => health/flo}/sample/Dependencies.kt (97%) rename sample/buildSrc/src/main/kotlin/{com/dropbox => health/flo}/sample/tasks/AffectedTasksPlugin.kt (94%) delete mode 100644 sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedtasksplugin.properties delete mode 100644 sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.sample.AffectedTestPlugin.properties create mode 100644 sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.affectedtasksplugin.properties create mode 100644 sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.sample.AffectedTestPlugin.properties rename sample/sample-app/src/androidTest/java/{com/dropbox => health/flo}/detector/sample/ExampleAndroidTest.kt (90%) rename sample/sample-app/src/main/java/{com/dropbox => health/flo}/detector/sample/MainActivity.kt (88%) rename sample/sample-app/src/test/java/{com/dropbox => health/flo}/detector/sample/ExampleUnitTest.kt (90%) rename sample/sample-core/src/test/java/{com/dropbox => health/flo}/detector/sample_core/ExampleUnitTest.kt (88%) delete mode 100644 sample/sample-jvm-module/src/main/java/com/dropbox/sample_jvm_module/MyClass.kt create mode 100644 sample/sample-jvm-module/src/main/java/health/flo/sample_jvm_module/MyClass.kt rename sample/sample-util/src/test/java/{com/dropbox => health/flo}/detector/sample_util/ExampleUnitTest.kt (88%) diff --git a/README.md b/README.md index 921b7ef9..25313003 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ affectedModuleDetector { - `excludedModules`: A list of modules that will be excluded from the build process, can be the name of a module, or a regex against the module gradle path - `includeUncommitted`: If uncommitted files should be considered affected - `top`: The top of the git log to use. Must be used in combination with configuration `includeUncommitted = false` - - `customTasks`: set of [CustomTask](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfiguration.kt) + - `customTasks`: set of [CustomTask](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfiguration.kt) By default, the Detector will look for `assembleAndroidDebugTest`, `connectedAndroidDebugTest`, and `testDebug`. Modules can specify a configuration block to specify which variant tests to run: ```groovy @@ -216,8 +216,8 @@ You should see zero tests run. Make a change within one of the modules and commi ## Custom tasks If you want to add a custom gradle command to execute with impact analysis -you must declare [AffectedModuleConfiguration.CustomTask](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfiguration.kt) -which is implementing the [AffectedModuleTaskType](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleTaskType.kt) interface in the `build.gradle` configuration of your project: +you must declare [AffectedModuleConfiguration.CustomTask](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfiguration.kt) +which is implementing the [AffectedModuleTaskType](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleTaskType.kt) interface in the `build.gradle` configuration of your project: ```groovy // ... @@ -238,7 +238,7 @@ affectedModuleDetector { **NOTE:** Please, test all your custom commands. If your custom task doesn't work correctly after testing, it might be that your task is quite complex and to work correctly it must use more gradle api's. -Hence, you must create `buildSrc` module and write a custom plugin manually like [AffectedModuleDetectorPlugin](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPlugin.kt) +Hence, you must create `buildSrc` module and write a custom plugin manually like [AffectedModuleDetectorPlugin](https://github.com/flo-health/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorPlugin.kt) ## Notes diff --git a/affectedmoduledetector/build.gradle b/affectedmoduledetector/build.gradle index c3657d16..9f1eb6ec 100644 --- a/affectedmoduledetector/build.gradle +++ b/affectedmoduledetector/build.gradle @@ -25,7 +25,7 @@ gradlePlugin { plugins { affectedModuleDetectorPlugin { id = GROUP - implementationClass = "com.dropbox.affectedmoduledetector.AffectedModuleDetectorPlugin" + implementationClass = "health.flo.affectedmoduledetector.AffectedModuleDetectorPlugin" } } } diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfiguration.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfiguration.kt similarity index 97% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfiguration.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfiguration.kt index 71501663..09190c4b 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfiguration.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfiguration.kt @@ -1,6 +1,6 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector -import com.dropbox.affectedmoduledetector.util.toOsSpecificPath +import health.flo.affectedmoduledetector.util.toOsSpecificPath import java.io.File import java.io.Serializable diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetector.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetector.kt similarity index 97% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetector.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetector.kt index 5f891edf..09051164 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetector.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetector.kt @@ -19,14 +19,14 @@ */ @file:JvmName("AffectedModuleDetectorUtil") -package com.dropbox.affectedmoduledetector - -import com.dropbox.affectedmoduledetector.AffectedModuleDetector.Companion.CHANGED_PROJECTS_ARG -import com.dropbox.affectedmoduledetector.AffectedModuleDetector.Companion.DEPENDENT_PROJECTS_ARG -import com.dropbox.affectedmoduledetector.AffectedModuleDetector.Companion.ENABLE_ARG -import com.dropbox.affectedmoduledetector.AffectedModuleDetector.Companion.MODULES_ARG -import com.dropbox.affectedmoduledetector.commitshaproviders.CommitShaProviderConfiguration -import com.dropbox.affectedmoduledetector.util.toPathSections +package health.flo.affectedmoduledetector + +import health.flo.affectedmoduledetector.AffectedModuleDetector.Companion.CHANGED_PROJECTS_ARG +import health.flo.affectedmoduledetector.AffectedModuleDetector.Companion.DEPENDENT_PROJECTS_ARG +import health.flo.affectedmoduledetector.AffectedModuleDetector.Companion.ENABLE_ARG +import health.flo.affectedmoduledetector.AffectedModuleDetector.Companion.MODULES_ARG +import health.flo.affectedmoduledetector.commitshaproviders.CommitShaProviderConfiguration +import health.flo.affectedmoduledetector.util.toPathSections import org.gradle.api.Action import org.gradle.api.GradleException import org.gradle.api.Project diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPlugin.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorPlugin.kt similarity index 98% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPlugin.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorPlugin.kt index 9f4edc12..a333fa6d 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPlugin.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorPlugin.kt @@ -2,7 +2,7 @@ * Copyright (c) 2020, Dropbox, Inc. All rights reserved. */ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import org.gradle.api.Plugin import org.gradle.api.Project @@ -31,7 +31,7 @@ import org.jetbrains.annotations.VisibleForTesting * logFolder = "${project.rootDir}". * } * - * To enable affected module detection, you need to pass [com.dropbox.affectedmoduledetector.AffectedModuleDetector.Companion.ENABLE_ARG] + * To enable affected module detection, you need to pass [health.flo.affectedmoduledetector.AffectedModuleDetector.Companion.ENABLE_ARG] * into the build as a command line parameter. * * See [AffectedModuleDetector] for additional flags. diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleTaskType.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleTaskType.kt similarity index 95% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleTaskType.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleTaskType.kt index 6bb27aae..5d8d89d5 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleTaskType.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedModuleTaskType.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import java.io.Serializable diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedTestConfiguration.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedTestConfiguration.kt similarity index 95% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedTestConfiguration.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedTestConfiguration.kt index 2746e16e..52ed4e02 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedTestConfiguration.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/AffectedTestConfiguration.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector /** * Used to configure which variant to run for affected tasks by adding following block to modules diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/DependencyTracker.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/DependencyTracker.kt similarity index 98% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/DependencyTracker.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/DependencyTracker.kt index 924b3e06..3bc7ebc4 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/DependencyTracker.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/DependencyTracker.kt @@ -17,7 +17,7 @@ /* * Copyright (c) 2020, Dropbox, Inc. All rights reserved. */ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import org.gradle.api.Project import org.gradle.api.artifacts.ProjectDependency diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/FileLogger.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/FileLogger.kt similarity index 97% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/FileLogger.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/FileLogger.kt index 7fb60e22..5f467997 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/FileLogger.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/FileLogger.kt @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import org.gradle.api.logging.LogLevel import org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/GitClient.kt similarity index 91% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/GitClient.kt index 1d8a7ef1..3a269322 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/GitClient.kt @@ -18,17 +18,17 @@ * Copyright (c) 2020, Dropbox, Inc. All rights reserved. */ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector -import com.dropbox.affectedmoduledetector.GitClientImpl.Companion.CHANGED_FILES_CMD_PREFIX -import com.dropbox.affectedmoduledetector.commitshaproviders.CommitShaProviderConfiguration -import com.dropbox.affectedmoduledetector.commitshaproviders.ForkCommit -import com.dropbox.affectedmoduledetector.commitshaproviders.PreviousCommit -import com.dropbox.affectedmoduledetector.commitshaproviders.SpecifiedBranchCommit -import com.dropbox.affectedmoduledetector.commitshaproviders.SpecifiedBranchCommitMergeBase -import com.dropbox.affectedmoduledetector.commitshaproviders.SpecifiedRawCommitSha -import com.dropbox.affectedmoduledetector.util.toOsSpecificLineEnding -import com.dropbox.affectedmoduledetector.util.toOsSpecificPath +import health.flo.affectedmoduledetector.GitClientImpl.Companion.CHANGED_FILES_CMD_PREFIX +import health.flo.affectedmoduledetector.commitshaproviders.CommitShaProviderConfiguration +import health.flo.affectedmoduledetector.commitshaproviders.ForkCommit +import health.flo.affectedmoduledetector.commitshaproviders.PreviousCommit +import health.flo.affectedmoduledetector.commitshaproviders.SpecifiedBranchCommit +import health.flo.affectedmoduledetector.commitshaproviders.SpecifiedBranchCommitMergeBase +import health.flo.affectedmoduledetector.commitshaproviders.SpecifiedRawCommitSha +import health.flo.affectedmoduledetector.util.toOsSpecificLineEnding +import health.flo.affectedmoduledetector.util.toOsSpecificPath import org.gradle.api.Project import org.gradle.api.file.DirectoryProperty import org.gradle.api.logging.Logger diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/InternalTaskType.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/InternalTaskType.kt similarity index 96% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/InternalTaskType.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/InternalTaskType.kt index bc38ecd6..3034f685 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/InternalTaskType.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/InternalTaskType.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector internal enum class InternalTaskType( override val commandByImpact: String, diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/ProjectGraph.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/ProjectGraph.kt similarity index 99% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/ProjectGraph.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/ProjectGraph.kt index ea3d4f57..d1e316f3 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/ProjectGraph.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/ProjectGraph.kt @@ -18,7 +18,7 @@ * Copyright (c) 2020, Dropbox, Inc. All rights reserved. */ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import org.gradle.api.Project import org.gradle.api.logging.Logger diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/CommitShaProvider.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/CommitShaProvider.kt similarity index 68% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/CommitShaProvider.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/CommitShaProvider.kt index 99e0ff9d..cf304679 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/CommitShaProvider.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/CommitShaProvider.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.GitClient -import com.dropbox.affectedmoduledetector.Sha +import health.flo.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.Sha import java.io.Serializable interface CommitShaProvider : Serializable { diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/ForkCommit.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/ForkCommit.kt similarity index 84% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/ForkCommit.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/ForkCommit.kt index 8e632c00..5d16d631 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/ForkCommit.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/ForkCommit.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.GitClient -import com.dropbox.affectedmoduledetector.Sha +import health.flo.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.Sha class ForkCommit : CommitShaProvider { override fun get(commandRunner: GitClient.CommandRunner): Sha { diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/PreviousCommit.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/PreviousCommit.kt similarity index 64% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/PreviousCommit.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/PreviousCommit.kt index 79ffb7ce..0656aa6a 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/PreviousCommit.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/PreviousCommit.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.GitClient -import com.dropbox.affectedmoduledetector.Sha +import health.flo.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.Sha class PreviousCommit : CommitShaProvider { override fun get(commandRunner: GitClient.CommandRunner): Sha { diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommit.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommit.kt similarity index 59% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommit.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommit.kt index 11486c18..111f8879 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommit.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommit.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.GitClient -import com.dropbox.affectedmoduledetector.Sha +import health.flo.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.Sha class SpecifiedBranchCommit(private val branch: String) : CommitShaProvider { diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBase.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBase.kt similarity index 74% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBase.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBase.kt index 2c029a7e..3f402ed2 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBase.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBase.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.GitClient -import com.dropbox.affectedmoduledetector.Sha +import health.flo.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.Sha class SpecifiedBranchCommitMergeBase(private val specifiedBranch: String) : CommitShaProvider { diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt similarity index 53% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt index 5f6ef99b..ae1d3f48 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.GitClient -import com.dropbox.affectedmoduledetector.Sha +import health.flo.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.Sha class SpecifiedRawCommitSha(private val commitSha: String) : CommitShaProvider { override fun get(commandRunner: GitClient.CommandRunner): Sha { diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/util/File.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/util/File.kt similarity index 93% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/util/File.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/util/File.kt index 6567b669..7ecbe2d5 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/util/File.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/util/File.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector.util +package health.flo.affectedmoduledetector.util import java.io.File diff --git a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/util/OsQuirks.kt b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/util/OsQuirks.kt similarity index 95% rename from affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/util/OsQuirks.kt rename to affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/util/OsQuirks.kt index 2cf86b57..5085ff7c 100644 --- a/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/util/OsQuirks.kt +++ b/affectedmoduledetector/src/main/kotlin/health/flo/affectedmoduledetector/util/OsQuirks.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector.util +package health.flo.affectedmoduledetector.util import java.io.File diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfigurationTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfigurationTest.kt similarity index 99% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfigurationTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfigurationTest.kt index ad006a7a..9e13f9d7 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfigurationTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleConfigurationTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import com.google.common.truth.Truth.assertThat import org.junit.Assert.assertFalse diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorImplTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorImplTest.kt similarity index 99% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorImplTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorImplTest.kt index 2c8a4bed..4a08379e 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorImplTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorImplTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import com.google.common.truth.Truth import org.gradle.api.Project diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorIntegrationTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorIntegrationTest.kt similarity index 98% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorIntegrationTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorIntegrationTest.kt index 9babc827..efe53736 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorIntegrationTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorIntegrationTest.kt @@ -1,6 +1,6 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector -import com.dropbox.affectedmoduledetector.rules.SetupAndroidProject +import health.flo.affectedmoduledetector.rules.SetupAndroidProject import com.google.common.truth.Truth.assertThat import org.gradle.testkit.runner.GradleRunner import org.junit.Rule diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt similarity index 98% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt index 3ac25fd2..cab8bf63 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import com.google.common.truth.Truth.assertThat import org.gradle.api.Project @@ -59,7 +59,7 @@ class AffectedModuleDetectorPluginTest { throw IllegalStateException("Expected to throw exception") } catch (e: PluginApplicationException) { // THEN - assertThat(e.message).isEqualTo("Failed to apply plugin class 'com.dropbox.affectedmoduledetector.AffectedModuleDetectorPlugin'.") + assertThat(e.message).isEqualTo("Failed to apply plugin class 'health.flo.affectedmoduledetector.AffectedModuleDetectorPlugin'.") } } diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedTestConfigurationTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedTestConfigurationTest.kt similarity index 97% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedTestConfigurationTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedTestConfigurationTest.kt index 90f21e7b..2b3b6ebd 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedTestConfigurationTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AffectedTestConfigurationTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import com.google.common.truth.Truth.assertThat import org.junit.Before diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AttachLogsTestRule.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AttachLogsTestRule.kt similarity index 96% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AttachLogsTestRule.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AttachLogsTestRule.kt index 2edf9aa7..eb7ee2e5 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AttachLogsTestRule.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/AttachLogsTestRule.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import org.junit.rules.TestRule import org.junit.runner.Description diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/InternalTaskTypeTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/InternalTaskTypeTest.kt similarity index 91% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/InternalTaskTypeTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/InternalTaskTypeTest.kt index f5a6bfdd..bc4f23c4 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/InternalTaskTypeTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/InternalTaskTypeTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import org.junit.Test import org.junit.runner.RunWith diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/ProjectGraphTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/ProjectGraphTest.kt similarity index 98% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/ProjectGraphTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/ProjectGraphTest.kt index f88c21b3..7ee59536 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/ProjectGraphTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/ProjectGraphTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector +package health.flo.affectedmoduledetector import junit.framework.TestCase.assertEquals import junit.framework.TestCase.assertNull diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/ForkCommitTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/ForkCommitTest.kt similarity index 93% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/ForkCommitTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/ForkCommitTest.kt index cd4ab389..53212d8b 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/ForkCommitTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/ForkCommitTest.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.AttachLogsTestRule -import com.dropbox.affectedmoduledetector.mocks.MockCommandRunner +import health.flo.affectedmoduledetector.AttachLogsTestRule +import health.flo.affectedmoduledetector.mocks.MockCommandRunner import com.google.common.truth.Truth.assertThat import org.junit.Assert.fail import org.junit.Rule diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/PreviousCommitTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/PreviousCommitTest.kt similarity index 81% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/PreviousCommitTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/PreviousCommitTest.kt index 9d055849..5e82fae5 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/PreviousCommitTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/PreviousCommitTest.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.AttachLogsTestRule -import com.dropbox.affectedmoduledetector.mocks.MockCommandRunner +import health.flo.affectedmoduledetector.AttachLogsTestRule +import health.flo.affectedmoduledetector.mocks.MockCommandRunner import com.google.common.truth.Truth.assertThat import org.junit.Rule import org.junit.Test diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBaseTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBaseTest.kt similarity index 86% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBaseTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBaseTest.kt index efd14676..6d92bd09 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBaseTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitMergeBaseTest.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.AttachLogsTestRule -import com.dropbox.affectedmoduledetector.mocks.MockCommandRunner +import health.flo.affectedmoduledetector.AttachLogsTestRule +import health.flo.affectedmoduledetector.mocks.MockCommandRunner import com.google.common.truth.Truth import org.junit.Rule import org.junit.Test diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitTest.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitTest.kt similarity index 79% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitTest.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitTest.kt index 0b818731..bfe43113 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitTest.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/commitshaproviders/SpecifiedBranchCommitTest.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.commitshaproviders +package health.flo.affectedmoduledetector.commitshaproviders -import com.dropbox.affectedmoduledetector.AttachLogsTestRule -import com.dropbox.affectedmoduledetector.mocks.MockCommandRunner +import health.flo.affectedmoduledetector.AttachLogsTestRule +import health.flo.affectedmoduledetector.mocks.MockCommandRunner import com.google.common.truth.Truth import org.junit.Rule import org.junit.Test diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/mocks/MockCommandRunner.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/mocks/MockCommandRunner.kt similarity index 86% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/mocks/MockCommandRunner.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/mocks/MockCommandRunner.kt index 49d5f41c..7ff30fea 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/mocks/MockCommandRunner.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/mocks/MockCommandRunner.kt @@ -1,7 +1,7 @@ -package com.dropbox.affectedmoduledetector.mocks +package health.flo.affectedmoduledetector.mocks -import com.dropbox.affectedmoduledetector.FileLogger -import com.dropbox.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.FileLogger +import health.flo.affectedmoduledetector.GitClient internal class MockCommandRunner(private val logger: FileLogger) : GitClient.CommandRunner { private val replies = mutableMapOf>() diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/mocks/MockCommitShaProvider.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/mocks/MockCommitShaProvider.kt similarity index 54% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/mocks/MockCommitShaProvider.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/mocks/MockCommitShaProvider.kt index 8fb15456..3a33b494 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/mocks/MockCommitShaProvider.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/mocks/MockCommitShaProvider.kt @@ -1,8 +1,8 @@ -package com.dropbox.affectedmoduledetector.mocks +package health.flo.affectedmoduledetector.mocks -import com.dropbox.affectedmoduledetector.GitClient -import com.dropbox.affectedmoduledetector.Sha -import com.dropbox.affectedmoduledetector.commitshaproviders.CommitShaProvider +import health.flo.affectedmoduledetector.GitClient +import health.flo.affectedmoduledetector.Sha +import health.flo.affectedmoduledetector.commitshaproviders.CommitShaProvider class MockCommitShaProvider : CommitShaProvider { private val replies = mutableListOf() diff --git a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/rules/SetupAndroidProject.kt b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/rules/SetupAndroidProject.kt similarity index 97% rename from affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/rules/SetupAndroidProject.kt rename to affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/rules/SetupAndroidProject.kt index 729f6fcc..90078548 100644 --- a/affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/rules/SetupAndroidProject.kt +++ b/affectedmoduledetector/src/test/kotlin/health/flo/affectedmoduledetector/rules/SetupAndroidProject.kt @@ -1,4 +1,4 @@ -package com.dropbox.affectedmoduledetector.rules +package health.flo.affectedmoduledetector.rules import org.junit.rules.TemporaryFolder import java.io.File diff --git a/sample/build.gradle b/sample/build.gradle index 39be784c..96a9e0ee 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,5 +1,5 @@ -import com.dropbox.affectedmoduledetector.AffectedModuleConfiguration -import com.dropbox.sample.Dependencies +import health.flo.affectedmoduledetector.AffectedModuleConfiguration +import health.flo.sample.Dependencies // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { diff --git a/sample/buildSrc/src/main/kotlin/com/dropbox/sample/AffectedTestsPlugin.kt b/sample/buildSrc/src/main/kotlin/health/flo/sample/AffectedTestsPlugin.kt similarity index 87% rename from sample/buildSrc/src/main/kotlin/com/dropbox/sample/AffectedTestsPlugin.kt rename to sample/buildSrc/src/main/kotlin/health/flo/sample/AffectedTestsPlugin.kt index ae95aebb..523e8136 100644 --- a/sample/buildSrc/src/main/kotlin/com/dropbox/sample/AffectedTestsPlugin.kt +++ b/sample/buildSrc/src/main/kotlin/health/flo/sample/AffectedTestsPlugin.kt @@ -1,6 +1,6 @@ -package com.dropbox.sample +package health.flo.sample -import com.dropbox.affectedmoduledetector.AffectedModuleDetector +import health.flo.affectedmoduledetector.AffectedModuleDetector import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.tasks.testing.Test diff --git a/sample/buildSrc/src/main/kotlin/com/dropbox/sample/Dependencies.kt b/sample/buildSrc/src/main/kotlin/health/flo/sample/Dependencies.kt similarity index 97% rename from sample/buildSrc/src/main/kotlin/com/dropbox/sample/Dependencies.kt rename to sample/buildSrc/src/main/kotlin/health/flo/sample/Dependencies.kt index 9fc058c0..c719f02c 100644 --- a/sample/buildSrc/src/main/kotlin/com/dropbox/sample/Dependencies.kt +++ b/sample/buildSrc/src/main/kotlin/health/flo/sample/Dependencies.kt @@ -1,4 +1,4 @@ -package com.dropbox.sample +package health.flo.sample object Dependencies { diff --git a/sample/buildSrc/src/main/kotlin/com/dropbox/sample/tasks/AffectedTasksPlugin.kt b/sample/buildSrc/src/main/kotlin/health/flo/sample/tasks/AffectedTasksPlugin.kt similarity index 94% rename from sample/buildSrc/src/main/kotlin/com/dropbox/sample/tasks/AffectedTasksPlugin.kt rename to sample/buildSrc/src/main/kotlin/health/flo/sample/tasks/AffectedTasksPlugin.kt index eba65261..2d4ec9fc 100644 --- a/sample/buildSrc/src/main/kotlin/com/dropbox/sample/tasks/AffectedTasksPlugin.kt +++ b/sample/buildSrc/src/main/kotlin/health/flo/sample/tasks/AffectedTasksPlugin.kt @@ -1,8 +1,8 @@ -package com.dropbox.affectedmoduledetector.tasks +package health.flo.affectedmoduledetector.tasks -import com.dropbox.affectedmoduledetector.AffectedModuleDetector -import com.dropbox.affectedmoduledetector.DependencyTracker -import com.dropbox.affectedmoduledetector.projectPath +import health.flo.affectedmoduledetector.AffectedModuleDetector +import health.flo.affectedmoduledetector.DependencyTracker +import health.flo.affectedmoduledetector.projectPath import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.Task diff --git a/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedtasksplugin.properties b/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedtasksplugin.properties deleted file mode 100644 index 20b67559..00000000 --- a/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedtasksplugin.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=com.dropbox.affectedmoduledetector.tasks.AffectedTasksPlugin \ No newline at end of file diff --git a/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.sample.AffectedTestPlugin.properties b/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.sample.AffectedTestPlugin.properties deleted file mode 100644 index def29325..00000000 --- a/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/com.dropbox.sample.AffectedTestPlugin.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=com.dropbox.sample.AffectedTestsPlugin diff --git a/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.affectedtasksplugin.properties b/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.affectedtasksplugin.properties new file mode 100644 index 00000000..1d5ec2ca --- /dev/null +++ b/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.affectedtasksplugin.properties @@ -0,0 +1 @@ +implementation-class=health.flo.affectedmoduledetector.tasks.AffectedTasksPlugin diff --git a/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.sample.AffectedTestPlugin.properties b/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.sample.AffectedTestPlugin.properties new file mode 100644 index 00000000..a51f621c --- /dev/null +++ b/sample/buildSrc/src/main/resources/META-INF/gradle-plugins/health.flo.sample.AffectedTestPlugin.properties @@ -0,0 +1 @@ +implementation-class=health.flo.sample.AffectedTestsPlugin diff --git a/sample/sample-app/build.gradle b/sample/sample-app/build.gradle index e3bec563..b9657f68 100644 --- a/sample/sample-app/build.gradle +++ b/sample/sample-app/build.gradle @@ -1,4 +1,4 @@ -import com.dropbox.sample.Dependencies +import health.flo.sample.Dependencies plugins { id 'com.android.application' @@ -11,12 +11,12 @@ affectedTestConfiguration { android { - namespace "com.dropbox.detector.sample" + namespace "health.flo.detector.sample" compileSdk 34 defaultConfig { - applicationId "com.dropbox.detector.sample" + applicationId "health.flo.detector.sample" minSdkVersion 23 targetSdkVersion 34 versionCode 1 @@ -52,4 +52,4 @@ dependencies { testImplementation Dependencies.Libs.JUNIT androidTestImplementation Dependencies.Libs.ANDROIDX_TEST_EXT androidTestImplementation Dependencies.Libs.ANDROIDX_ESPRESSO -} \ No newline at end of file +} diff --git a/sample/sample-app/src/androidTest/java/com/dropbox/detector/sample/ExampleAndroidTest.kt b/sample/sample-app/src/androidTest/java/health/flo/detector/sample/ExampleAndroidTest.kt similarity index 90% rename from sample/sample-app/src/androidTest/java/com/dropbox/detector/sample/ExampleAndroidTest.kt rename to sample/sample-app/src/androidTest/java/health/flo/detector/sample/ExampleAndroidTest.kt index 544559fc..a74278de 100644 --- a/sample/sample-app/src/androidTest/java/com/dropbox/detector/sample/ExampleAndroidTest.kt +++ b/sample/sample-app/src/androidTest/java/health/flo/detector/sample/ExampleAndroidTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.detector.sample +package health.flo.detector.sample import org.junit.Assert.assertEquals import org.junit.Test diff --git a/sample/sample-app/src/main/AndroidManifest.xml b/sample/sample-app/src/main/AndroidManifest.xml index c6dfd3a9..84ebf8cc 100644 --- a/sample/sample-app/src/main/AndroidManifest.xml +++ b/sample/sample-app/src/main/AndroidManifest.xml @@ -8,7 +8,7 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.Sample"> - @@ -18,4 +18,4 @@ - \ No newline at end of file + diff --git a/sample/sample-app/src/main/java/com/dropbox/detector/sample/MainActivity.kt b/sample/sample-app/src/main/java/health/flo/detector/sample/MainActivity.kt similarity index 88% rename from sample/sample-app/src/main/java/com/dropbox/detector/sample/MainActivity.kt rename to sample/sample-app/src/main/java/health/flo/detector/sample/MainActivity.kt index 77768102..4ae56d74 100644 --- a/sample/sample-app/src/main/java/com/dropbox/detector/sample/MainActivity.kt +++ b/sample/sample-app/src/main/java/health/flo/detector/sample/MainActivity.kt @@ -1,4 +1,4 @@ -package com.dropbox.detector.sample +package health.flo.detector.sample import android.os.Bundle import androidx.appcompat.app.AppCompatActivity diff --git a/sample/sample-app/src/main/res/layout/activity_main.xml b/sample/sample-app/src/main/res/layout/activity_main.xml index b38022e7..a42e9f0a 100644 --- a/sample/sample-app/src/main/res/layout/activity_main.xml +++ b/sample/sample-app/src/main/res/layout/activity_main.xml @@ -5,7 +5,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context="com.dropbox.detector.sample.MainActivity"> + tools:context="health.flo.detector.sample.MainActivity"> - \ No newline at end of file + diff --git a/sample/sample-app/src/test/java/com/dropbox/detector/sample/ExampleUnitTest.kt b/sample/sample-app/src/test/java/health/flo/detector/sample/ExampleUnitTest.kt similarity index 90% rename from sample/sample-app/src/test/java/com/dropbox/detector/sample/ExampleUnitTest.kt rename to sample/sample-app/src/test/java/health/flo/detector/sample/ExampleUnitTest.kt index 558cfbd5..62b2ba41 100644 --- a/sample/sample-app/src/test/java/com/dropbox/detector/sample/ExampleUnitTest.kt +++ b/sample/sample-app/src/test/java/health/flo/detector/sample/ExampleUnitTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.detector.sample +package health.flo.detector.sample import org.junit.Assert.assertEquals import org.junit.Test diff --git a/sample/sample-core/build.gradle b/sample/sample-core/build.gradle index b8107cfa..e72db8a2 100644 --- a/sample/sample-core/build.gradle +++ b/sample/sample-core/build.gradle @@ -1,4 +1,4 @@ -import com.dropbox.sample.Dependencies +import health.flo.sample.Dependencies plugins { id 'com.android.library' @@ -11,7 +11,7 @@ affectedTestConfiguration { } android { - namespace "com.dropbox.detector.sample_core" + namespace "health.flo.detector.sample_core" compileSdk 34 @@ -51,4 +51,4 @@ dependencies { testImplementation Dependencies.Libs.JUNIT androidTestImplementation Dependencies.Libs.ANDROIDX_TEST_EXT androidTestImplementation Dependencies.Libs.ANDROIDX_ESPRESSO -} \ No newline at end of file +} diff --git a/sample/sample-core/detekt-baseline.xml b/sample/sample-core/detekt-baseline.xml index 6f3755ff..7b7ac556 100644 --- a/sample/sample-core/detekt-baseline.xml +++ b/sample/sample-core/detekt-baseline.xml @@ -2,6 +2,6 @@ - PackageNaming:ExampleUnitTest.kt$package com.dropbox.detector.sample_core + PackageNaming:ExampleUnitTest.kt$package health.flo.detector.sample_core diff --git a/sample/sample-core/src/test/java/com/dropbox/detector/sample_core/ExampleUnitTest.kt b/sample/sample-core/src/test/java/health/flo/detector/sample_core/ExampleUnitTest.kt similarity index 88% rename from sample/sample-core/src/test/java/com/dropbox/detector/sample_core/ExampleUnitTest.kt rename to sample/sample-core/src/test/java/health/flo/detector/sample_core/ExampleUnitTest.kt index 3efd0e79..517a9f23 100644 --- a/sample/sample-core/src/test/java/com/dropbox/detector/sample_core/ExampleUnitTest.kt +++ b/sample/sample-core/src/test/java/health/flo/detector/sample_core/ExampleUnitTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.detector.sample_core +package health.flo.detector.sample_core import org.junit.Assert.assertEquals import org.junit.Test diff --git a/sample/sample-jvm-module/detekt-baseline.xml b/sample/sample-jvm-module/detekt-baseline.xml index 8939d28c..e767b1d8 100644 --- a/sample/sample-jvm-module/detekt-baseline.xml +++ b/sample/sample-jvm-module/detekt-baseline.xml @@ -3,7 +3,7 @@ EmptyClassBlock:MyClass.kt$MyClass${ } - NewLineAtEndOfFile:MyClass.kt$com.dropbox.sample_jvm_module.MyClass.kt - PackageNaming:MyClass.kt$package com.dropbox.sample_jvm_module + NewLineAtEndOfFile:MyClass.kt$health.flo.sample_jvm_module.MyClass.kt + PackageNaming:MyClass.kt$package health.flo.sample_jvm_module diff --git a/sample/sample-jvm-module/src/main/java/com/dropbox/sample_jvm_module/MyClass.kt b/sample/sample-jvm-module/src/main/java/com/dropbox/sample_jvm_module/MyClass.kt deleted file mode 100644 index a6145fde..00000000 --- a/sample/sample-jvm-module/src/main/java/com/dropbox/sample_jvm_module/MyClass.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.dropbox.sample_jvm_module - -class MyClass { -} \ No newline at end of file diff --git a/sample/sample-jvm-module/src/main/java/health/flo/sample_jvm_module/MyClass.kt b/sample/sample-jvm-module/src/main/java/health/flo/sample_jvm_module/MyClass.kt new file mode 100644 index 00000000..a4f557e9 --- /dev/null +++ b/sample/sample-jvm-module/src/main/java/health/flo/sample_jvm_module/MyClass.kt @@ -0,0 +1,4 @@ +package health.flo.sample_jvm_module + +class MyClass { +} diff --git a/sample/sample-util/build.gradle b/sample/sample-util/build.gradle index 54aebaa6..258dcb26 100644 --- a/sample/sample-util/build.gradle +++ b/sample/sample-util/build.gradle @@ -1,4 +1,4 @@ -import com.dropbox.sample.Dependencies +import health.flo.sample.Dependencies plugins { id 'com.android.library' @@ -10,7 +10,7 @@ affectedTestConfiguration { } android { - namespace "com.dropbox.detector.sample_util" + namespace "health.flo.detector.sample_util" compileSdk 34 defaultConfig { @@ -47,4 +47,4 @@ dependencies { testImplementation Dependencies.Libs.JUNIT androidTestImplementation Dependencies.Libs.ANDROIDX_TEST_EXT androidTestImplementation Dependencies.Libs.ANDROIDX_ESPRESSO -} \ No newline at end of file +} diff --git a/sample/sample-util/detekt-baseline.xml b/sample/sample-util/detekt-baseline.xml index e34c93c8..525b0650 100644 --- a/sample/sample-util/detekt-baseline.xml +++ b/sample/sample-util/detekt-baseline.xml @@ -2,6 +2,6 @@ - PackageNaming:ExampleUnitTest.kt$package com.dropbox.detector.sample_util + PackageNaming:ExampleUnitTest.kt$package health.flo.detector.sample_util diff --git a/sample/sample-util/src/test/java/com/dropbox/detector/sample_util/ExampleUnitTest.kt b/sample/sample-util/src/test/java/health/flo/detector/sample_util/ExampleUnitTest.kt similarity index 88% rename from sample/sample-util/src/test/java/com/dropbox/detector/sample_util/ExampleUnitTest.kt rename to sample/sample-util/src/test/java/health/flo/detector/sample_util/ExampleUnitTest.kt index 070e229a..85ab80e6 100644 --- a/sample/sample-util/src/test/java/com/dropbox/detector/sample_util/ExampleUnitTest.kt +++ b/sample/sample-util/src/test/java/health/flo/detector/sample_util/ExampleUnitTest.kt @@ -1,4 +1,4 @@ -package com.dropbox.detector.sample_util +package health.flo.detector.sample_util import org.junit.Assert.assertEquals import org.junit.Test