Skip to main content

3 posts tagged with "Spring Boot"

View All Tags

Maven Central Publish Guide(for Gradle)

· 4 min read
Too_Young
Moonlit maintanier

bk

When we develop common utility classes or libraries in a project, we often want others to be able to reference and reuse these results directly.
At this point, there are two main options:

  • Private Publishing: Publish the dependency to a private Maven repository within your team or organization for internal sharing;
  • Public Publishing: Publish the dependency to a public repository on the Internet, such as Maven Central, so that developers worldwide can use your open-source library.

This article provides a detailed guide on how to publish your Gradle project to Maven Central.

Spring Boot Configuration for Springdoc

· 2 min read
Too_Young
Moonlit maintanier

bk

Recently upgraded SpringBoot to 2.7.5, found that swagger is not working well. After searching online, I found that the problem existed since version 2.6.6. Looking at springfox's GitHub, I saw that someone had raised an issue back in 2020, and it's still not closed. The solutions are quite cumbersome. I plan to replace springfox with springdoc.

caution

This uses swagger3, the annotations are somewhat different from swagger2.