2020-08-18 22:23:08 +07:00
|
|
|
if (!project.hasProperty("springVersion")) {
|
|
|
|
ext.springVersion = "5.2.+"
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!project.hasProperty("springSecurityVersion")) {
|
2020-10-23 00:41:34 +07:00
|
|
|
ext.springSecurityVersion = "5.5.+"
|
2020-08-18 22:23:08 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!project.hasProperty("reactorVersion")) {
|
|
|
|
ext.reactorVersion = "Dysprosium-SR+"
|
|
|
|
}
|
|
|
|
|
2020-08-20 03:31:01 +07:00
|
|
|
if (!project.hasProperty("locksDisabled")) {
|
|
|
|
dependencyLocking {
|
|
|
|
lockAllConfigurations()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-24 02:37:17 +07:00
|
|
|
dependencyManagement {
|
|
|
|
imports {
|
2020-08-18 22:23:08 +07:00
|
|
|
mavenBom "org.springframework:spring-framework-bom:$springVersion"
|
|
|
|
mavenBom "org.springframework.security:spring-security-bom:$springSecurityVersion"
|
|
|
|
mavenBom "io.projectreactor:reactor-bom:$reactorVersion"
|
2020-10-13 22:39:36 +07:00
|
|
|
mavenBom "com.fasterxml.jackson:jackson-bom:2.+"
|
2020-04-24 02:37:17 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-09-21 23:14:33 +07:00
|
|
|
dependency "com.nimbusds:oauth2-oidc-sdk:latest.release"
|
|
|
|
dependency "com.nimbusds:nimbus-jose-jwt:latest.release"
|
2020-04-24 03:45:34 +07:00
|
|
|
dependency "javax.servlet:javax.servlet-api:4.+"
|
2020-04-24 02:37:17 +07:00
|
|
|
dependency 'junit:junit:latest.release'
|
|
|
|
dependency 'org.assertj:assertj-core:latest.release'
|
|
|
|
dependency 'org.mockito:mockito-core:latest.release'
|
2020-04-24 03:45:34 +07:00
|
|
|
dependency "com.squareup.okhttp3:mockwebserver:3.+"
|
|
|
|
dependency "com.squareup.okhttp3:okhttp:3.+"
|
2020-06-11 20:54:01 +07:00
|
|
|
dependency "com.jayway.jsonpath:json-path:2.+"
|
2020-04-24 02:37:17 +07:00
|
|
|
}
|
|
|
|
}
|
2020-08-18 22:23:08 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
NOTE:
|
|
|
|
The latest `reactor-netty` dependency was split into `reactor-netty-core` and `reactor-netty-http`,
|
|
|
|
which resulted in the snapshot build to fail. The below configuration fixes it.
|
|
|
|
|
|
|
|
Reference:
|
|
|
|
- https://github.com/spring-projects/spring-security/issues/8909
|
|
|
|
- https://github.com/reactor/reactor-netty/issues/739#issuecomment-667047117
|
|
|
|
*/
|
|
|
|
if (reactorVersion.startsWith('20')) {
|
|
|
|
if (reactorVersion.endsWith('SNAPSHOT') || reactorVersion.endsWith('+')) {
|
|
|
|
ext.reactorLatestVersion = "latest.integration"
|
|
|
|
} else {
|
|
|
|
ext.reactorLatestVersion = "latest.release"
|
|
|
|
}
|
|
|
|
configurations {
|
|
|
|
all {
|
|
|
|
resolutionStrategy {
|
|
|
|
eachDependency { DependencyResolveDetails details ->
|
|
|
|
if (details.requested.name == 'reactor-netty') {
|
|
|
|
details.useTarget("${details.requested.group}:reactor-netty-http:${reactorLatestVersion}")
|
|
|
|
details.because("reactor-netty is now split into reactor-netty-core and reactor-netty-http")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|