android-testify icon indicating copy to clipboard operation
android-testify copied to clipboard

Replace Plugin-Local with Composite Build

Open DanielJette opened this issue 1 year ago • 6 comments

What does this change accomplish?

Resolves https://github.com/ndtp/android-testify/issues/209

How have you achieved it?

  • https://docs.gradle.org/current/samples/sample_composite_builds_plugin_development.html#buildscript_dependencies_are_substituted
  • https://docs.gradle.org/current/userguide/composite_builds.html#:~:text=In%20a%20composite%20build%2C%20Gradle,project%20path%20of%20the%20project.

Scope of Impact and Testing instructions

Notice

[!WARNING] This change must keep main in a shippable state; it may be shipped without further notice.

DanielJette avatar Aug 06 '24 01:08 DanielJette

~The issue I keep running into is that composite builds appear to require the java-gradle-plugin plugin. However, this plugin manipulates the published artifacts in undesirable ways that I have not figured out how to control. It seems to duplicate and replace some of, but not all of, the publishing configuration we have set in publish.build.gradle~

The trick is to set automatedPublishing = false which will prevent the creation of a duplicate/unnecessary publishing block.

DanielJette avatar Aug 06 '24 15:08 DanielJette