Skip to content

Commit 5a95fd0

Browse files
committed
Make httpcore5-h2 classes available to Gradle tests
httpclient5 now requires classes in httpcore5-h2 in addition to those in httpcore5. See gh-34086
1 parent 304a1ba commit 5a95fd0

File tree

1 file changed

+4
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit

1 file changed

+4
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleBuild.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 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.
@@ -43,6 +43,7 @@
4343
import org.apache.commons.compress.archivers.ArchiveEntry;
4444
import org.apache.hc.client5.http.io.HttpClientConnectionManager;
4545
import org.apache.hc.core5.http.HttpRequest;
46+
import org.apache.hc.core5.http2.HttpVersionPolicy;
4647
import org.gradle.testkit.runner.BuildResult;
4748
import org.gradle.testkit.runner.GradleRunner;
4849
import org.gradle.util.GradleVersion;
@@ -123,7 +124,8 @@ private List<File> pluginClasspath() {
123124
new File(pathOfJarContaining(LanguageSettings.class)),
124125
new File(pathOfJarContaining(ArchiveEntry.class)), new File(pathOfJarContaining(BuildRequest.class)),
125126
new File(pathOfJarContaining(HttpClientConnectionManager.class)),
126-
new File(pathOfJarContaining(HttpRequest.class)), new File(pathOfJarContaining(Module.class)),
127+
new File(pathOfJarContaining(HttpRequest.class)),
128+
new File(pathOfJarContaining(HttpVersionPolicy.class)), new File(pathOfJarContaining(Module.class)),
127129
new File(pathOfJarContaining(Versioned.class)),
128130
new File(pathOfJarContaining(ParameterNamesModule.class)),
129131
new File(pathOfJarContaining(JsonView.class)), new File(pathOfJarContaining(Platform.class)),

0 commit comments

Comments
 (0)