Skip to content

v3.2.3

Latest

Choose a tag to compare

@lpusok lpusok released this 27 Jul 11:13
3ebe196

What's Changed

Fixes

  • Gradle mirrors init script is now compatible with Gradle Isolated Projects — the Robolectric block configured Test tasks across every project via getRootProject().allprojects, which Gradle rejects under org.gradle.unsafe.isolated-projects=true with Project ':' cannot access 'Project.tasks' functionality on subprojects via 'allprojects'. The redirect is registered per project in beforeProject instead (#442, SSW-3090)
  • beforeProject rather than afterProject keeps project-level robolectric.dependency.repo.url overrides working. configureEach actions run in registration order, so registering after the build script would have made the mirror the last writer and silently overridden a project setting the property itself (#442)
  • roboProbes is suffixed per mirror, matching the existing canBeMirrored/useMirror convention — a second UseAsRobolectricRepo entry would otherwise emit two conflicting declarations in one scope and fail to compile the init script (#442)
  • The Robolectric classpath probe takes the Test task from the doFirst receiver instead of capturing it, removing a configuration-cache serialization hazard that Isolated Projects builds would hit (#442)

Gradle verification

For reference, the verification metadata is available as an attached asset.

Changelog

  • 3ebe196 Merge pull request #442 from bitrise-io/ssw-3090-isolated-projects-compat

Gradle verification

For reference, the verification metadata is available as an attached assset.