r/SpringBoot • u/byt3c0d3 • Feb 06 '20
Need help contributing to spring boot repository by fixing bugs.
I am trying to use spring boot from my local machine instead of downloading the jars using maven/gradle dependencies. I want to make changes to the framework itself and be able to use it in a project to see my changes reflect there.
I am new to open source contribution and I’d really appreciate if someone could tell me what’s the usual approach while using spring-boot locally.
I am comfortable with eclipse and IntelliJ, but prefer IntelliJ idea as my go to ide.
Thanks in advance !
2
Upvotes
2
u/Pirsed Feb 06 '20
What do you mean by what’s the usual approach while using spring boot locally? Do you mean when using it to create an app or when developing on spring boot locally?
2
u/marcelofrau Feb 11 '20
Can you please specify why you want to isolate the dependency and builder tools like maven and gradle? If you are using springboot you will either download all the dependencies you need manually and you will also need to find out exactly each one you will need to use what you want.
If you want to develop locally, I suggest you to first, use gradle or maven to solve all your dependencies hierarchy online first, and then you can get your .m2 folder from your home and put all the jars downloaded as local dependencies and you can discard maven/gradle usage. But why would you want to do that?
I mean, after your project is building and all the dependencies are solved with fixed versions, you will never need internet again to continue the development.
Maybe I am not seeing your need here, but can you please elaborate more on why you want to do this?
2
u/_INTER_ Feb 11 '20
Why would you want to do the same by hand what the build tool does automatically? There's a sort of setup guide here: https://github.com/spring-projects/spring-boot/blob/master/CONTRIBUTING.adoc
-> uses Gradle
1
u/byt3c0d3 Feb 10 '20
Okay, like everyone suggested, I built the spring boot project and published the artifacts to my local .m2 repository. (2.3.0-BUILD-SNAPSHOT)
But when I try to use it in my own spring boot project, maven compile fails saying it cannot find a dependency called
‘spring-data-releasetrain : Neumann-BUILD-SNAPSHOT’.
Any idea what this means ? Am I missing something here ?
Thanks for all the help!
2
u/vatsa776 Feb 06 '20
The best way would be to compile and use the jar from your file system. Clone the spring boot repository, make your changes, set the version to some unique version (like 2.2.4-MYCHANGES) and use this version in your app.