1

In maven we can write like this to make maven management version automatic:

 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency> 

how to write like this in gradle(6.0) to make gradle manage dependencies automatic?Is it possible

1

1 Answer 1

1

You need to add Spring Boot plugin. Next you can omit Spring versions in your code.

E.g. please add the following block into the top of your file (for Gradle KTS notation):

plugins { id("org.springframework.boot") version "2.2.2" } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.