Skip to content

Commit

Permalink
refactor: migrate springfox to springdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
damingerdai committed Feb 12, 2024
1 parent b637da5 commit adb9c36
Show file tree
Hide file tree
Showing 16 changed files with 402 additions and 721 deletions.
3 changes: 2 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build --java_language_version=17
build --java_language_version=17 --java_runtime_version=17 --tool_java_language_version=17 --tool_java_runtime_version=17
test --java_language_version=17 --java_runtime_version=17 --tool_java_language_version=17 --tool_java_runtime_version=17

# Load any settings which are specific to the current user. Needs to be *last* statement
# in this config, as the user configuration should be able to overwrite flags from this file.
Expand Down
27 changes: 12 additions & 15 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ java_library(
"@maven//:org_springframework_boot_spring_boot_starter_quartz",
"@maven//:org_springframework_boot_spring_boot_starter_aop",

"@maven//:io_springfox_springfox_boot_starter",
"@maven//:io_springfox_springfox_core",
"@maven//:io_springfox_springfox_spi",
"@maven//:io_springfox_springfox_oas",
"@maven//:io_springfox_springfox_spring_web",
"@maven//:io_swagger_swagger_annotations",
"@maven//:io_swagger_core_v3_swagger_core_jakarta",
"@maven//:io_swagger_core_v3_swagger_annotations_jakarta",
"@maven//:io_swagger_core_v3_swagger_models_jakarta",

"@maven//:com_auth0_java_jwt",
"@maven//:org_postgresql_postgresql",
Expand Down Expand Up @@ -65,17 +62,17 @@ java_library(
],
)

java_binary(
name = "jobs",
main_class = "org.daming.jobs.JobsApplication",
runtime_deps = [":jobs-lib"],
deploy_manifest_lines = {
"Main-Class": "org.daming.jobs.JobsApplication",
},
)
# java_binary(
# name = "jobs",
# main_class = "org.daming.jobs.JobsApplication",
# runtime_deps = [":jobs-lib"],
# deploy_manifest_lines = {
# "Main-Class": "org.daming.jobs.JobsApplication",
# },
# )

springboot(
name = "springboot",
name = "jobs",
# specify the main class
boot_app_class = "org.daming.jobs.JobsApplication",
# refrence the library
Expand Down
6 changes: 5 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ maven_install(

#"org.springframework.boot:spring-boot-configuration-processor:3.2.2",

"io.springfox:springfox-boot-starter:3.0.0",
"org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0",
# "io.swagger.core.v3:swagger-annotations:2.2.9:jakarta",
# "io.swagger.core.v3:swagger-core:2.2.9:jakarta",
# "io.swagger.core.v3:swagger-modules:2.2.9:jakarta",

"com.auth0:java-jwt:3.19.4",
"org.postgresql:postgresql:42.4.0",

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-quartz'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'org.apache.shiro:shiro-spring-boot-web-starter:1.13.0'
implementation('org.apache.shiro:shiro-spring:1.13.0:jakarta') {
exclude group: 'org.apache.shiro', module: 'shiro-core'
Expand Down
Loading

0 comments on commit adb9c36

Please sign in to comment.