Validating that the autodetected groupId matches the explicitly set groupId for non-published projects too
so that when we set the groupId automatically in a followup change, none of the groupIds will change.
This requires setting a groupId in non-published projects.
This also requires setting LibraryType and Publish in some cases so that we can detect that these projects aren't published
Bug: 146802533
Test: run `./development/validateRefactor.sh HEAD^` and see that there aren't any differences relating to groupIds or to files being added or removed (although there are some differences in docs, which is a known issue: b/189228842 )
Test: run `./gradlew tasks --all` with and without this change and see that the list of tasks is the same
Test: Treehugger runs busytown/*.sh
Change-Id: Ie4c5993872543745f6eada632a80de339bd08638
diff --git a/annotation/annotation-experimental-lint/integration-tests/build.gradle b/annotation/annotation-experimental-lint/integration-tests/build.gradle
index 308e7cd..9922f11 100644
--- a/annotation/annotation-experimental-lint/integration-tests/build.gradle
+++ b/annotation/annotation-experimental-lint/integration-tests/build.gradle
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+import androidx.build.LibraryType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
def isIdeBuild() {
@@ -44,3 +45,8 @@
}
}
}
+
+androidx {
+ type = LibraryType.INTERNAL_TEST_LIBRARY
+ mavenGroup = LibraryGroups.ANNOTATION
+}
diff --git a/annotation/annotation-sampled/build.gradle b/annotation/annotation-sampled/build.gradle
index d450e7e..267caf7 100644
--- a/annotation/annotation-sampled/build.gradle
+++ b/annotation/annotation-sampled/build.gradle
@@ -22,3 +22,7 @@
dependencies {
implementation(libs.kotlinStdlib)
}
+
+androidx {
+ mavenGroup = LibraryGroups.ANNOTATION
+}