All Questions
1,568
questions
0
votes
0
answers
17
views
open api generator kotlin gradle dsl - cant generate specific api endpoint
i am using open api generator kotlin dsl build.kts gradle task version 7.0.1 to generate spring 2.7.18 web clients
expected: generate 1x MeterApisAPi and 1x model
openApiGenerate {
inputSpec.set(&...
0
votes
0
answers
73
views
Migrating to spring 3.3.0+ version, causes issues with wiremock
im trying to update from spring-boot 3.1.9 to 3.3.1. When i update the version, tests using wiremock start failing.
I read about the standalone version,
and have updated my gradle script accordingly ...
0
votes
1
answer
25
views
Gradle properties in Spring banner
I'm recently moving from maven to gradle and I would like to access some project variables as I was doing in maven, from my application.yml.
In my other project I would define in my pom.xml
<...
2
votes
1
answer
43
views
Use a different maven repository per build in gradle
I have a spring/gradle/kotlin backend Application, that I have to build in 2 networks. One has internet, the other does not, but it has a private maven repository.
Example part of build.gradle.kts:
......
0
votes
1
answer
105
views
Cannot resolve symbol 'NotEmpty' using SpringBoot 3.x [duplicate]
I'm starting to study JavaSpring and I want to validate the attributes of my class.
I'm using this annotation: @NotEmpty to validate the fields.
However, I am receiving the following message: Cannot ...
0
votes
0
answers
23
views
Overriding Spring datasource properties for integrationTest with testcontainer DB credentials in SpringBoot application
I have setup a gradle Spring boot application where I am trying to execute the build process using a testcontainer.
Here is what I wanted to achieve when I run .\gradlew clean build
Start a MySql ...
1
vote
1
answer
75
views
How to solve 'PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer' in springboot?
I have been trying to upgrade my springboot application to Java 21 (the previous one was Java 17) and gradle version to 8.7. My spring boot version was '2.5.4' and now I have changed to '3.1.11' Now, ...
0
votes
1
answer
181
views
org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk-17\bin\java.exe'' finished with non-zero exit value 1
I have downloaded the Spring Initializer startup file to run the SpringApplication file and have been getting exceptions ever since. When I run the SpringApplication.java file on IntelliJ, I get the ...
-1
votes
1
answer
29
views
Restrict number of running Spring instances when running Gradle tests
We're developing a Spring Boot project. We have a lot of integration tests which start up the whole application.
The application has a lot of configurable stuff which means a lot of the test classes ...
0
votes
0
answers
30
views
java.lang.NoClassDefFoundError: org/springframework/util/ConcurrentReferenceHashMap$EntrySet
Try running the gradle jettyrun command, however it always fails with the error shown below.
Caused by: org.gradle.internal.UncheckedException: java.lang.Exception: org/springframework/util/...
1
vote
1
answer
84
views
Gradle: How to share build logic between subprojects?
I am a native Maven user and Gradle is new territory for me. I'm trying to build a multi-module project around a Spring application.
Now I am facing the following problems:
i want Kotlin (plugins and ...
0
votes
0
answers
44
views
Java compile process throws error before OpenApi generates code
I'm building a REST:API with Spring Boot and I'm using the OpenAPI plugin to generate my stubs and DTO's (Ao's).
I already used the OpenAPI plugin in another project which worked perfectly fine. But ...
0
votes
1
answer
33
views
Java failed to build .jar with Spring Boot
I try to build .jar with Spring Boot for Java8.
But,I get this message.
An exception occurred applying plugin request [id: 'org.springframework.boot', version: '1.5.21.RELEASE'] Failed to apply plugin ...
0
votes
1
answer
56
views
npmInstall FAILED with jdk 17 and gradle 7.4
I am in process of migrating jdk 11 to jdk 17, and updating gradle version from 6.6.1 to 7.4
After changing versions, I tried making war using gradle war command but it failed at this point -
> ...
2
votes
0
answers
83
views
How to configure Gradle to initialize specific modules at runtime when generating a native image with GraalVM?
I am trying to generate a native image with GraalVM using the graalvmNative plugin in Gradle. With simple projects, it works fine when I just apply the org.graalvm.buildtools plugin. However, when I ...