diff --git a/buildSrc/src/main/java/org/springframework/restdocs/build/optional/OptionalDependenciesPlugin.java b/buildSrc/src/main/java/org/springframework/restdocs/build/optional/OptionalDependenciesPlugin.java index c21f8b62..cb864278 100644 --- a/buildSrc/src/main/java/org/springframework/restdocs/build/optional/OptionalDependenciesPlugin.java +++ b/buildSrc/src/main/java/org/springframework/restdocs/build/optional/OptionalDependenciesPlugin.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2022 the original author or authors. + * Copyright 2014-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ public class OptionalDependenciesPlugin implements Plugin { public void apply(Project project) { Configuration optional = project.getConfigurations().create(OPTIONAL_CONFIGURATION_NAME); project.getConfigurations().all((configuration) -> { - if (configuration.getName().startsWith("testRuntimeClasspath_")) { + if (configuration.getName().startsWith("testRuntimeClasspath_") || configuration.getName().startsWith("testCompileClasspath_")) { configuration.extendsFrom(optional); } }); diff --git a/settings.gradle b/settings.gradle index bb985a31..a3dd419d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,6 +2,7 @@ pluginManagement { repositories { mavenCentral() gradlePluginPortal() + maven { url 'https://repo.spring.io/snapshot' } } resolutionStrategy { eachPlugin { diff --git a/spring-restdocs-core/build.gradle b/spring-restdocs-core/build.gradle index 8ccf781d..f5f6d59e 100644 --- a/spring-restdocs-core/build.gradle +++ b/spring-restdocs-core/build.gradle @@ -1,5 +1,5 @@ plugins { - id "io.spring.compatibility-test" version "0.0.2" + id "io.spring.compatibility-test" version "0.0.3-SNAPSHOT" id "java-library" id "java-test-fixtures" id "maven-publish" diff --git a/spring-restdocs-mockmvc/build.gradle b/spring-restdocs-mockmvc/build.gradle index 1264dedf..d365c5d8 100644 --- a/spring-restdocs-mockmvc/build.gradle +++ b/spring-restdocs-mockmvc/build.gradle @@ -1,5 +1,5 @@ plugins { - id "io.spring.compatibility-test" version "0.0.2" + id "io.spring.compatibility-test" version "0.0.3-SNAPSHOT" id "java-library" id "maven-publish" id "optional-dependencies" diff --git a/spring-restdocs-webtestclient/build.gradle b/spring-restdocs-webtestclient/build.gradle index b1cea014..a6009396 100644 --- a/spring-restdocs-webtestclient/build.gradle +++ b/spring-restdocs-webtestclient/build.gradle @@ -1,5 +1,5 @@ plugins { - id "io.spring.compatibility-test" version "0.0.2" + id "io.spring.compatibility-test" version "0.0.3-SNAPSHOT" id "java-library" id "maven-publish" }