Skip to content

Commit

Permalink
remove redundant task definition from downloadOpenApiSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
longjuan committed Jul 13, 2024
1 parent ed46d37 commit 8e12315
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,10 @@ build {


task downloadOpenApiSpec {
1
doLast {
def url = 'http://localhost:8090/v3/api-docs/plugin-s3'
def file = layout.buildDirectory.dir("apidocs/openapi.json").get().asFile
file.parentFile.mkdirs()
file.text = new URL(url).text
}
def url = 'http://localhost:8090/v3/api-docs/plugin-s3'
def file = layout.buildDirectory.dir("apidocs/openapi.json").get().asFile
file.parentFile.mkdirs()
file.text = new URL(url).text
}

openApiGenerate {
Expand Down

0 comments on commit 8e12315

Please sign in to comment.