question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove redundant spring-boot-starter dependency from starters

See original GitHub issue

Hi, this is a first-timers-only issue. This means we’ve worked to make it more legible to folks who either haven’t contributed to our codebase before, or even folks who haven’t contributed to open source before.

If that’s you, we’re interested in helping you take the first step and can answer questions and help you out as you do. Note that we’re especially interested in contributions from people from groups underrepresented in free and open source software!

If you have contributed before, consider leaving this one for someone new, and looking through our general ideal-for-contribution issues. Thanks!

Background

Spring Boot Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop-shop for all the Spring and related technology that you need without having to hunt through sample code and copy paste loads of dependency descriptors. For example, if you want to get started using Spring and JPA for database access just include the spring-boot-starter-data-jpa dependency in your project, and you are good to go.

Problem

Including spring-boot-starter in some starter poms is redundant as this starter gets pulled in by other dependencies. Here is a list of starters that do not explicitly need to include spring-boot-starter:

spring-boot-starter-batch spring-boot-starter-data-jpa spring-boot-starter-data-rest spring-boot-starter-groovy-templates spring-boot-starter-integration spring-boot-starter-jersey spring-boot-starter-jooq spring-boot-starter-web spring-boot-starter-web-services spring-boot-starter-webflux spring-boot-starter-websocket

Solution

Remove the spring-boot-starter dependency from the pom.xml files for these modules. The modules can be found here.

Steps to Fix

  • Claim this issue with a comment here, below, and ask any clarifying questions you need
  • Set up a repository locally following the Contributing Guidelines
  • Try to fix the issue following the steps above
  • Commit your changes and start a pull request.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
wilkinsonacommented, Aug 16, 2018

That was quick. Thanks very much for the pull request. I’ll close this one in favour of it.

0reactions
snicollcommented, Aug 17, 2018

Unfortunately, this change breaks use cases where an optional starter is excluded (as it excludes also the base that isn’t defined anymore). We should reevaluate the change and re-introduce the base starter when it makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reduce size of Java Spring app by removing not needed ...
You shouldn't have spring-web etc. as a dependency as those are pulled in by the starters. Also the spring-boot-starter-data-rest isn't need for ...
Read more >
Spring Boot Maven Plugin Documentation
A dependency management section, inherited from the spring-boot-dependencies POM, that manages the versions of common dependencies. This ...
Read more >
Top 10 Most Common Spring Framework Mistakes - Toptal
In case you are not very familiar with Spring Boot but would still like to try out some of the things mentioned, I've...
Read more >
Spring Boot - Apache Camel
Contents. Camel Spring Boot Starter; Spring Boot Auto-Configuration; Auto-configured Camel context; Auto-detecting Camel routes; Camel properties; Custom ...
Read more >
Release notes — JaVers Documentation
javers-spring-boot-starter-mongo dependencies: ... 5.10.3. released on 2020-07-04. Fixes for 996 and 692 — removed redundant Guava dependency.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found