File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -131,3 +131,32 @@ configurations {
131
131
}
132
132
}
133
133
}
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
+ }
You can’t perform that action at this time.
0 commit comments