In Jhipster I deleted filed through command and after run " gradlew liquibaseDiffChangelog " command but got this error - gradle

FAILURE: Build failed with an exception.
* Where:
Script 'G:\Project\beequote\gradle\liquibase.gradle' line: 19
* What went wrong:
Execution failed for task ':pathingLiquibaseJar'.
> Could not resolve all files for configuration ':liquibase'.
> Could not find org.liquibase.ext:liquibase-hibernate5:.
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more l
og output.
* Get more help at https://help.gradle.org
BUILD FAILED in 24s

It's a bug in JHipster and will be fixed in next version > 4.13.1, in the meantime you can fix it by adding version 3.6 in gradle/liquibase.gradle file:
dependencies {
liquibase "org.liquibase.ext:liquibase-hibernate5:3.6"
}

Related

How can I configuration spring-boot-configuration-processor when I would like to change from KAPT to KSP? I get every time error

Basic problem, kapt is in maintenance mode. So I would like to change to ksp. In theory, it's the equivalent of faster like kapt. The changing option is not clear.
I did:
This was
plugin {
...
kotlin("kapt") version "1.7.20"
...
replaced by
plugin {
...
id("com.google.devtools.ksp") version "1.7.20-1.0.7"
...
}
and there were
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
kapt("org.springframework.boot:spring-boot-configuration-processor")
replaced by
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
ksp("org.springframework.boot:spring-boot-configuration-processor")
So, when I build project I got below error:
> Task :kspKotlin FAILED
e: [ksp] No providers found in processor classpath.
e: Error occurred in KSP, check log for detail
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':kspKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 829ms
1 actionable task: 1 executed
I've been mining the internet for almost two days, but I still haven't found a solution to this problem. If anyone knows, I will be very happy! :)
KSP is not a direct replacement to kapt. Changing one name to another won't do the trick.
spring-boot-configuration-processor wasn't built to work with KSP, so this line
ksp("org.springframework.boot:spring-boot-configuration-processor")
won't do anything.

Gradle says that archivesBaseName is not a property

Build file 'C:\Users\Ilan\Desktop\Code\Minecraft Mods\MinecraftByExample-1-8-9final\build.gradle' line: 25
A problem occurred evaluating root project 'MinecraftByExample-1-8-9final'.
> Could not set unknown property 'archivesBaseName' for root project 'MinecraftByExample-1-8-9final' of type org.gradle.api.Project.
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'MinecraftByExample-1-8-9final'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:79)...
I'm running the newest Gradle version as of now, and Java 17

Gradle 6.x - Could not create task of type 'SpotBugsTask'

I'm migrating Gradle project from v 4.10.3 to 6.8 because I need relocatable cache. Here are the files https://gist.github.com/iva-nova-e-katerina/679a4922da4d63df1489655853051916
The system-wide Gradle is version 6.8. When I run "gradle clean build" I got following error:
└─$ gradle clean build
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Configure project :
ArtifactoryUser user: null
Using Java from /home/katya/java (version 11.0.2)
Detected development environment
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script '/home/katya/tmp_work/groovy-2.5.8_modified/gradle/quality.gradle' line: 149
* What went wrong:
A problem occurred evaluating script.
> Could not create task ':spotbugsAntlr'.
> Could not create task of type 'SpotBugsTask'.
> Could not create an instance of type com.github.spotbugs.internal.SpotBugsReportsImpl.
> org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring root project 'groovy'.
> Could not create task ':spotbugsMain'.
> Could not create task of type 'SpotBugsTask'.
> Could not create an instance of type com.github.spotbugs.internal.SpotBugsReportsImpl.
> org.gradle.api.reporting.internal.TaskReportContainer.<init>(Ljava/lang/Class;Lorg/gradle/api/Task;)V
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3s
Publishing build scan...
Some deprecated Gradle features are mentioned, but I do not clearly understand what is going on, could you explain me? How to force this project build in Gradle 6.8?

"Could not find method platform()" after Firestore upgrade for Flutter project

I just upgraded to Firestore 0.14.4 from 0.13.* for my VSCode/Flutter project and am now getting the build errors below.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\projects\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.14.4\android\build.gradle' line: 54
* What went wrong:
A problem occurred evaluating project ':cloud_firestore'.
> Could not find method platform() for arguments [com.google.firebase:firebase-bom:25.12.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
My build.gradle file has the line classpath 'com.android.tools.build:gradle:3.3.2 which makes me think my gradle needs upgrading? So, I did the usual Google search but it didn't seem straightforward to upgrade gradle (though I'm sure I missed something). Does it sound like I need to upgrade and, if so, how do I do that?

'.' is not recognized as an internal or external command when running ./gradlew

Whenever I run ./gradlew buildForProd, it gives me this error. I'm using windows.
'.' is not recognized as an internal or external command,
operable program or batch file.
EDIT:
Thanks Mofi for the resources.
After running .\gradlew, this is what I got.
Starting a Gradle Daemon, 19 busy Daemons could not be reused, use --status for details
:buildForProd FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildForProd'.
> A problem occurred starting process 'command './gradlew''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 12s
1 actionable task: 1 executed

Resources