Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Use composite builds in functional tests #278

Merged
merged 4 commits into from
Apr 26, 2019

Conversation

mr-archano
Copy link
Contributor

Follow-up work of #276. Aim is to avoid to rely on the java-gradle-plugin magic to inject the classpath of the functional tests with a local copy of the plugin, and use composite builds instead.
The main advantage of this is that the test projects generated as part of the functional tests can be then re-built and debugged without issues.

Implementation details

  • A synthetic gradle project (plugin/functional-tests/src/test/gradle) has been introduced to be used along with composite builds
  • In order to avoid issues with the publication configuration the buildscripts in :core have been re-arranged:
    • when :core is included in the main Gradle project, its buildscript will include the Bintray configuration, see plugin/core/publish.gradle
    • when :core is included via composite build in the functional tests will instead be using plugin/core/build.gradle as build file
  • the templates used to generate the gradle projects for the functional tests now ship with a composite build configuration ensuring that they build against a local copy of the bintray-release plugin without any need of deployments anywhere.

@mr-archano mr-archano merged commit b38d183 into gradle/support_5.4 Apr 26, 2019
@mr-archano mr-archano deleted the gradle/composite_builds branch April 26, 2019 16:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant