This message was deleted.
# configuration-cache
s
This message was deleted.
v
What is unclear with the message?
Your are using a plugin that is unmaintained since years. Even it's readme states that the plugin is not compatible with Gradle 5+. If it worked so far, you probably just were lucky. But from a quick look that plugin anyway just runs some annotation processors, so it is probably not too helpful anyway and also followed quite since bad practices which affects its users too.
i
Hello , thank you , here my build.gradle :plugins { id 'org.springframework.boot' version '2.7.4' id 'io.spring.dependency-management' version '1.0.14.RELEASE' id 'java' id "org.sonarqube" version '3.4.0.2513' id "org.owasp.dependencycheck" version "6.5.0.1" id 'com.ewerk.gradle.plugins.querydsl' version '1.0.10' } querydsl { library = 'com.querydslquerydsl apt5.0.0' jpa = true } configurations { querydsl.extendsFrom implementation, compileClasspath } compileQuerydsl { options.annotationProcessorPath = configurations.querydsl } project.afterEvaluate { project.tasks.compileQuerydsl.options.compilerArgs = [ "-proc:only", "-processor", project.querydsl.processors() + ',lombok.launch.AnnotationProcessorHider$AnnotationProcessor' ] } sourceSets { main { java { srcDirs = ['src/main/java', 'src/querydsl/java'] } } } sonarqube { properties { property "sonar.projectKey", "api-workspaces" property "sonar.login", "3a2dcfade50c3ef0bd8e1cea3212961a5e2b2355" property "sonar.host.url", " https://sonar.rainntest.com " property 'sonar.coverage.exclusions', "**/*" property 'sonar.exclusions', "**/org/rhs/api/workspaces/domain/**" } } group = 'org.rhs.api' version = '1.0.0' sourceCompatibility = '11' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() maven { url ' https://repo.spring.io/milestone ' } } ext { set('springCloudVersion', '2021.0.3') } dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.security:spring-security-messaging' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-websocket' implementation 'org.springframework.boot:spring-boot-starter-reactor-netty' implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' implementation 'org.springframework.boot:spring-boot-starter-data-redis' implementation 'com.querydslquerydsl jpa5.0.0' implementation 'com.github.alexliesenfeldquerydsl jpa postgres json0.0.7' implementation 'com.google.guavaguava31.1-jre' implementation 'org.redissonredisson spring boot starter3.17.7' implementation 'org.redissonredisson hibernate 533.17.7' implementation 'com.vladmihalceahibernate types 522.19.2' implementation 'org.apache.poipoi5.2.3' implementation 'org.apache.poipoi ooxml5.2.3' implementation 'com.opencsvopencsv5.7.0' implementation 'com.sun.mailjavax.mail1.6.2' implementation 'org.apache.commonscommons lang33.12.0' implementation 'com.twilio.sdktwilio9.0.1' implementation 'org.owasp.esapiesapi2.5.0.0' //Just this comment to test the triggers, any codes got changes . //AWS Cognito Dependency implementation platform('software.amazon.awssdkbom2.17.293') implementation 'software.amazon.awssdk:cognitoidentity' implementation 'software.amazon.awssdk:cognitoidentityprovider' implementation group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.12.400' compileOnly 'org.projectlombok:lombok' implementation 'org.postgresql:postgresql' developmentOnly 'org.springframework.boot:spring-boot-devtools' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test' } dependencyManagement { imports { mavenBom "org.springframework.cloudspring cloud dependencies${springCloudVersion}" } } test { useJUnitPlatform() }######
I want to enable org.gradle.unsafe.configuration-cache=true, but I can't for some reason
v
I told you the reason
Btw. you should also stop using the Spring Dependency Management plugin. It is an obsolete relict from times when Gradle did not have built-in BOM support. By now it does more harm than good and even the maintainer of that plugin recommends not to use it anymore but to instead use the built-in BOM support using
platform(...)
as documented also in the Spring Boot docs.
i
Can you please help with to fix it , I did spend a lot time , I can't find any possible solutions.Thanks
here my build.gradle: plugins { id 'org.springframework.boot' version '2.7.4' id 'io.spring.dependency-management' version '1.0.14.RELEASE' id 'java' id "org.sonarqube" version '3.4.0.2513' id "org.owasp.dependencycheck" version "6.5.0.1" id 'com.ewerk.gradle.plugins.querydsl' version '1.0.10' } querydsl { library = 'com.querydslquerydsl apt5.0.0' jpa = true } configurations { querydsl.extendsFrom implementation, compileClasspath } compileQuerydsl { options.annotationProcessorPath = configurations.querydsl } project.afterEvaluate { project.tasks.compileQuerydsl.options.compilerArgs = [ "-proc:only", "-processor", project.querydsl.processors() + ',lombok.launch.AnnotationProcessorHider$AnnotationProcessor' ] } sourceSets { main { java { srcDirs = ['src/main/java', 'src/querydsl/java'] } } } sonarqube { properties { property "sonar.projectKey", "api-workspaces" property "sonar.login", "3a2dcfade50c3ef0bd8e1cea3212961a5e2b2355" property "sonar.host.url", " https://sonar.rainntest.com " property 'sonar.coverage.exclusions', "**/*" property 'sonar.exclusions', "**/org/rhs/api/workspaces/domain/**" } } group = 'org.rhs.api' version = '1.0.0' sourceCompatibility = '11' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() maven { url ' https://repo.spring.io/milestone ' } } ext { set('springCloudVersion', '2021.0.3') } dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.security:spring-security-messaging' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-websocket' implementation 'org.springframework.boot:spring-boot-starter-reactor-netty' implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' implementation 'org.springframework.boot:spring-boot-starter-data-redis' implementation 'com.querydslquerydsl jpa5.0.0' implementation 'com.github.alexliesenfeldquerydsl jpa postgres json0.0.7' implementation 'com.google.guavaguava31.1-jre' implementation 'org.redissonredisson spring boot starter3.17.7' implementation 'org.redissonredisson hibernate 533.17.7' implementation 'com.vladmihalceahibernate types 522.19.2' implementation 'org.apache.poipoi5.2.3' implementation 'org.apache.poipoi ooxml5.2.3' implementation 'com.opencsvopencsv5.7.0' implementation 'com.sun.mailjavax.mail1.6.2' implementation 'org.apache.commonscommons lang33.12.0' implementation 'com.twilio.sdktwilio9.0.1' implementation 'org.owasp.esapiesapi2.5.0.0' //Just this comment to test the triggers, any codes got changes . //AWS Cognito Dependency implementation platform('software.amazon.awssdkbom2.17.293') implementation 'software.amazon.awssdk:cognitoidentity' implementation 'software.amazon.awssdk:cognitoidentityprovider' implementation group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.12.400' compileOnly 'org.projectlombok:lombok' implementation 'org.postgresql:postgresql' developmentOnly 'org.springframework.boot:spring-boot-devtools' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test' } dependencyManagement { imports { mavenBom "org.springframework.cloudspring cloud dependencies${springCloudVersion}" } } test { useJUnitPlatform() } How can I refractor this to align the updated one . Please any helps will be much appreciate it.
v
I'm not going to rewrite your build. I already told you that you use a plugin that is not compatible with your Gradle version. (And that you should also stop using the Spring dependency management plugin, but this is unrelated to your configuration cache problem) What more do you expect, that I refactor your build? o_O
i
For configuration cache , please any help .
v
I already gave you help, what more do you expect?
Just repeating "help me" will not make me give a different answer
i
I am currently gradle 8.6 , but I am still facing proble with configuration cache .
v
Of course, let me repeat a third time. You are using a plugin that is not compatible with the Gradle version you are using.
That it works without configuration cache - if it works without configuration cache - is just pure luck
i
Sorry , I am pretty new with gradle , you are suggesting me to update them , but I don't any ideas .
v
You cannot update the plugin, as I said already in my first response, it is unmaintained since several years and even it's readme states that the plugin is not compatible with Gradle 5+.
If you want to use that plugin, you need to use an ancient Gradle version, if you want to use a recent Gradle version, you cannot use that plugin.
Unless you make the maintainer update it, or find a fork or replacement that is updated or whatever.
i
I thank you for previous answer!!. I got the root causes!!
👌 1