Questions tagged [spring-boot-gradle-plugin]

The Spring Boot Gradle Plugin provides Spring Boot support in Gradle, allowing you to package executable jar or war archives, run Spring Boot applications and use the dependency management provided by spring-boot-dependencies.

206 questions
0
votes
1 answer

Why does the version set by useVersion in the resolutionStrategy not propagate?

I am using the Spring Boot Gradle plugin and its dependency management to manage some of my own dependencies across project so I do not need to add an explicit version in the build.gradle. dependencyManagement { dependencies { dependency…
mmoehring
  • 95
  • 6
0
votes
1 answer

Gradle plugin that loads org.springframework.boot into projects

I'm writing a custom gradle plugin Foo and I want to load the org.springframework.boot plugin into projects that apply the Foo plugin. I can load various other plugins this way, but this particular plugin doesn't want to behave the same way. Foo…
0
votes
1 answer

Gradle :Hostname may not contain blanks

While importing exisiting gradle project in eclipse , I am getting an error message which says "IllegalArgumentException:Host name may not contain blanks". I verified my gradle-wrapper.properties and found that proxyHost, port, username and…
Rajeev Akotkar
  • 1,377
  • 4
  • 26
  • 46
0
votes
1 answer

Extract duplicates of plugins from subProjects to root gradle config

I have this project structure: -root-project -settings.gradle -build.gradle -subProjectA(spring-boot) -build.gradle -subprojectB(spring-boot) -build.gradle -subprojectC(spring-boot) -build.gradle -commonProject(java library) …
0
votes
0 answers

Create multiple artifact in Spring Boot Gradle v2.1.2.RELEASE

I am using spring boot 2.1.2.RELEASE and gradle 4.10 where I would like to create 2 jars, one is with simulator classes and the other without simulator classes. In boot 1.X I used to use the BootRepackage to achieve the same which is deprecated in…
Sujit
  • 468
  • 1
  • 8
  • 22
0
votes
1 answer

Spring Boot Gradle Script - Get mainClassName

If I have: build.gradle System.out.println("${tasks.bootJar.mainClassName}") Main class name has not been configured and it could not be resolved So I comment out System.out.println, run the build again. Success. Now if I uncomment out my…
JvmSd121
  • 351
  • 3
  • 17
0
votes
1 answer

gradle build hangs when using azure application insights appender in logback.xml

I am using azure application insights for logging in my application, It is a spring boot application with gradle. I am using application insights as an appender in my logback.xml The application works fine and logging works fine. But when I try to…
0
votes
2 answers

spring boot with gradle not starting up

I am trying to build sample hello application using gradle build in Spring tool suite facing below design time error. I have grade version 4.10.2 installed on my machine. Error Msg: Description Resource Path Location Type Could not run…
Raam C
  • 29
  • 2
  • 3
0
votes
2 answers

Spring boot as a service does not pick-up active profiles settings

I am trying to run Spring Boot as a service using init.d. I face an issue that -Dspring.profiles.active=xxx is not being consider and spring says no active profiles found setting profile as default. I am using SpringBoot version 1.5.13. The below…
Paranthaman
  • 41
  • 3
  • 8
0
votes
0 answers

Spring Boot War eclipse integration

I've attempted to use the spring boot starter at https://start.spring.io/ to create a web project with war packaging. I'm using gradle and am able to produce a "hello world" war that works when deployed to an external instance of tomcat 8.5. I would…
zzDevzz
  • 13
  • 5
0
votes
1 answer

Spring Boot OAuth2 security session doesn't get clear when Logout

I used the following configuration but the user still exists. It has not clear the cookies.So how to clear the session and cookies? .and() .logout().logoutRequestMatcher(new…
0
votes
1 answer

How do I make a data class as an ArrayList in another data class?

This is my data class. @Entity @Table(name = "loan_category") data class Loan_category ( @Id @Column(name = "loan_id") @GeneratedValue(strategy = GenerationType.AUTO) val id: Long? = null, @Column(name = "category_name",unique…
0
votes
0 answers

Gradle build failed - Spring boot project with lombok

Cannot build Spring-boot project in Gradle. I get the following error (stack): java.lang.IllegalStateException: Failed to load ApplicationContext at…
0
votes
1 answer

Artifact id resolved wrong

I am new to gradle and I am facing a weird problem while I’m trying to add a plugin in gradle. I know that we have to specify an if and version in plugin body for a gradle build, but I tried to add a plugin with some id and version. My question…
0
votes
1 answer

Can not import using Gradle (Buildship 1.x) because Buildship Gradle Tooling version 1.x is not installed

I am using Eclipse Version: Oxygen.3a Release (4.7.3a). Eclipse is not allowing to create spring starter project with Type: Gradle (Buildship 1.x). I have already installed Buildship Gradle Integration 2.0 installed in my eclipse. I have already…