Hello,
I have a project with Gradle 5.0 and SpringBoot 2.18 that is working good.
The problem is the I need to upgrade to Gradle 6.7.1 and SpringBoot 2.35 and I have issues with my build.gradle.
See the build.gradle in the bottom of this Topic.
when i run the build (gradle clean build --refresh-dependencies
) I get this error:
FAILURE: Build failed with an exception.
627 * What went wrong:
628 Execution failed for task ‘:compileJava’.
629 > Could not resolve all files for configuration ‘:compileClasspath’.
630 > Could not find com.rhythmone.fusion:commons:1.2.8-SNAPSHOT.
631 Required by:
632 project
The build.gradle is:
plugins {
id 'org.springframework.boot' version '2.3.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'com.suprise'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
compile {
extendsFrom annotationProcessor
}
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
repositories {
maven {
name "snapshot"
url "https://artifactory.suprise.com:443/artifactory/libs-snapshot"
}
maven {
name "release"
url "https://artifactory.suprise.com:443/artifactory/libs-release"
}
}
ext {
set('springCloudVersion', "Greenwich.SR3")
set('swaggerVersion', "2.9.2")
set('unleashVersion', "3.3.0")
set('ch.qos.logback.version','1.2.3')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
compile 'com.suprise.bringiton:commons:1.2.3-SNAPSHOT'
compile 'org.apache.commons:commons-lang3:3.0'
compile group: 'org.jasypt', name: 'jasypt', version: '1.9.2'
compile group: 'de.qaware.jasypt', name: 'jasypt-hibernate5', version: '1.9.2'
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'ch.qos.logback', name: 'logback-access', version: '1.2.3'
implementation group: 'net.logstash.logback', name: 'logstash-logback-encoder', version: '6.4'
implementation 'org.springframework.security.oauth:spring-security-oauth2'
implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure'
implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-zuul'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'io.lettuce:lettuce-core:5.1.7.RELEASE'
implementation 'ma.glasnost.orika:orika-core:1.5.4'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv'
implementation 'com.opencsv:opencsv:4.1'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
implementation 'org.hibernate:hibernate-envers'
implementation "no.finn.unleash:unleash-client-java:${unleashVersion}"
implementation group: 'org.json', name: 'json', version: '20090211'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'mysql:mysql-connector-java'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compile 'org.projectlombok:lombok'
// swagger
compile ("io.springfox:springfox-swagger-ui:$swaggerVersion")
compile ("io.springfox:springfox-swagger2:$swaggerVersion") {
exclude module: 'swagger-annotations'
exclude module: 'swagger-models'
}
compile ("io.swagger:swagger-annotations:1.5.21")
compile ("io.swagger:swagger-models:1.5.21")
implementation 'org.springframework.boot:spring-boot-starter-validation'
compile group: 'org.elasticsearch.client', name: 'transport', version: '7.5.2'
testImplementation 'org.hamcrest:hamcrest:2.2'
}