Skip to content

Commit 9743b45

Browse files
committed
Start using 0.0.3 snapshots of the compatibility test plugin
See gh-935
1 parent b55f604 commit 9743b45

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

buildSrc/src/main/java/org/springframework/restdocs/build/optional/OptionalDependenciesPlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
});

settings.gradle

+1
Original file line numberDiff line numberDiff 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 {

spring-restdocs-core/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
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"

spring-restdocs-mockmvc/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
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"

spring-restdocs-webtestclient/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
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
}

0 commit comments

Comments
 (0)