• Andy Wilkinson's avatar
    Isolate Maven Plugin's integration tests from repo.spring.io · 181e3b34
    Andy Wilkinson authored
    Previously, the Maven plugin integration tests used a settings.xml file
    that defined https://repo.spring.io/snapshot as a repository. This
    allowed them to resolve snapshots of the plugin's Spring Framework
    dependencies but it had the unfortunate side-effect of also allowing
    them to resolve snapshots of other Spring Boot modules from Artifactory
    rather than using those currently being built.
    
    This commit replaces the repositories in settings.xml with a Gradle
    task that resolves the necessary dependencies and populates a local
    repository with the dependencies' jars and pom files. This is achieved
    using a ComponentMetadataRule that creates a custom variant of each
    dependency that includes its pom file, inspired by the example in
    gradle/gradle/#11449. A configuration that extends the
    runtimeClasspath configuration and select the custom variant via its
    attribute is then used to resolve the jars and pom files of the runtime
    classpath such that they can then be used to populate the local
    repository.
    
    Closes gh-22828
    181e3b34
Name
Last commit
Last update
..
build-image Loading commit data...
build-image-builder-error Loading commit data...
build-image-custom-builder Loading commit data...
build-image-custom-name Loading commit data...
build-image-empty-env-entry Loading commit data...
build-info Loading commit data...
build-info-additional-properties Loading commit data...
build-info-custom-build-time Loading commit data...
build-info-custom-file Loading commit data...
build-info-disable-build-time Loading commit data...
jar Loading commit data...
jar-attach-disabled Loading commit data...
jar-classifier-main Loading commit data...
jar-classifier-main-attach-disabled Loading commit data...
jar-classifier-source Loading commit data...
jar-classifier-source-attach-disabled Loading commit data...
jar-create-dir Loading commit data...
jar-custom-dir Loading commit data...
jar-custom-launcher Loading commit data...
jar-custom-layout Loading commit data...
jar-exclude-entry Loading commit data...
jar-exclude-group Loading commit data...
jar-executable Loading commit data...
jar-layered Loading commit data...
jar-layered-custom Loading commit data...
jar-layered-no-layer-tools Loading commit data...
jar-lib-name-conflict Loading commit data...
jar-output-timestamp Loading commit data...
jar-pom Loading commit data...
jar-skip Loading commit data...
jar-system-scope Loading commit data...
jar-system-scope-default Loading commit data...
jar-test-scope Loading commit data...
jar-with-kotlin-module Loading commit data...
jar-with-layout-property Loading commit data...
jar-with-unpack Loading commit data...
jar-with-zip-layout Loading commit data...
run Loading commit data...
run-arguments Loading commit data...
run-arguments-commandline Loading commit data...
run-devtools Loading commit data...
run-disable-fork Loading commit data...
run-envargs Loading commit data...
run-exclude Loading commit data...
run-fork Loading commit data...
run-jvm-system-props Loading commit data...
run-jvmargs Loading commit data...
run-jvmargs-commandline Loading commit data...
run-profiles Loading commit data...
run-profiles-fork-disabled Loading commit data...
run-toolchains Loading commit data...
run-use-test-classpath Loading commit data...
run-working-directory Loading commit data...
start-stop Loading commit data...
start-stop-fork-disabled Loading commit data...
start-stop-skip Loading commit data...
war Loading commit data...
war-output-timestamp Loading commit data...
war-reactor Loading commit data...
war-with-unpack Loading commit data...
settings.xml Loading commit data...