File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed
buildSrc/src/main/java/org/springframework/restdocs/build/optional
spring-restdocs-webtestclient Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2014-2022 the original author or authors.
2+ * Copyright 2014-2024 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@ public class OptionalDependenciesPlugin implements Plugin<Project> {
4646 public void apply (Project project ) {
4747 Configuration optional = project .getConfigurations ().create (OPTIONAL_CONFIGURATION_NAME );
4848 project .getConfigurations ().all ((configuration ) -> {
49- if (configuration .getName ().startsWith ("testRuntimeClasspath_" )) {
49+ if (configuration .getName ().startsWith ("testRuntimeClasspath_" ) || configuration . getName (). startsWith ( "testCompileClasspath_" ) ) {
5050 configuration .extendsFrom (optional );
5151 }
5252 });
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ pluginManagement {
22 repositories {
33 mavenCentral()
44 gradlePluginPortal()
5+ maven { url ' https://repo.spring.io/snapshot' }
56 }
67 resolutionStrategy {
78 eachPlugin {
Original file line number Diff line number Diff line change 11plugins {
2- id " io.spring.compatibility-test" version " 0.0.2 "
2+ id " io.spring.compatibility-test" version " 0.0.3-SNAPSHOT "
33 id " java-library"
44 id " java-test-fixtures"
55 id " maven-publish"
Original file line number Diff line number Diff line change 11plugins {
2- id " io.spring.compatibility-test" version " 0.0.2 "
2+ id " io.spring.compatibility-test" version " 0.0.3-SNAPSHOT "
33 id " java-library"
44 id " maven-publish"
55 id " optional-dependencies"
Original file line number Diff line number Diff line change 11plugins {
2- id " io.spring.compatibility-test" version " 0.0.2 "
2+ id " io.spring.compatibility-test" version " 0.0.3-SNAPSHOT "
33 id " java-library"
44 id " maven-publish"
55}
You can’t perform that action at this time.
0 commit comments