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