Skip to content

Commit 1361cb8

Browse files
committed
Use reactor-netty-http for snapshot build
Closes gh-8909
1 parent aeafe04 commit 1361cb8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

gradle/dependency-management.gradle

+29
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,32 @@ configurations {
131131
}
132132
}
133133
}
134+
135+
/*
136+
NOTE:
137+
The latest `reactor-netty` dependency was split into `reactor-netty-core` and `reactor-netty-http`,
138+
which resulted in the snapshot build to fail. The below configuration fixes it.
139+
140+
Reference:
141+
- https://github.com/spring-projects/spring-security/issues/8909
142+
- https://github.com/reactor/reactor-netty/issues/739#issuecomment-667047117
143+
*/
144+
if (reactorVersion.startsWith('20')) {
145+
if (reactorVersion.endsWith('SNAPSHOT') || reactorVersion.endsWith('+')) {
146+
ext.reactorLatestVersion = "latest.integration"
147+
} else {
148+
ext.reactorLatestVersion = "latest.release"
149+
}
150+
configurations {
151+
all {
152+
resolutionStrategy {
153+
eachDependency { DependencyResolveDetails details ->
154+
if (details.requested.name == 'reactor-netty') {
155+
details.useTarget("${details.requested.group}:reactor-netty-http:${reactorLatestVersion}")
156+
details.because("reactor-netty is now split into reactor-netty-core and reactor-netty-http")
157+
}
158+
}
159+
}
160+
}
161+
}
162+
}

0 commit comments

Comments
 (0)