build: swagger deps move to api module

This commit is contained in:
CaptainB 2023-07-05 17:37:40 +08:00 committed by 刘瑞斌
parent 71493a9670
commit db8626ac0e
4 changed files with 19 additions and 19 deletions

View File

@ -278,22 +278,6 @@
<version>${xmlbeans.version}</version>
</dependency>
<!-- swagger 解析 -->
<dependency>
<groupId>io.swagger.parser.v3</groupId>
<artifactId>swagger-parser</artifactId>
<version>${swagger-parser.version}</version>
<exclusions>
<exclusion>
<artifactId>swagger-core</artifactId>
<groupId>io.swagger.core.v3</groupId>
</exclusion>
<exclusion>
<artifactId>swagger-models</artifactId>
<groupId>io.swagger.core.v3</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>

View File

@ -18,6 +18,22 @@
<artifactId>metersphere-sdk</artifactId>
<version>${revision}</version>
</dependency>
<!-- swagger 解析 -->
<dependency>
<groupId>io.swagger.parser.v3</groupId>
<artifactId>swagger-parser</artifactId>
<version>${swagger-parser.version}</version>
<exclusions>
<exclusion>
<artifactId>swagger-core</artifactId>
<groupId>io.swagger.core.v3</groupId>
</exclusion>
<exclusion>
<artifactId>swagger-models</artifactId>
<groupId>io.swagger.core.v3</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

View File

@ -3,7 +3,7 @@ package io.metersphere.bug.controller;
import io.metersphere.bug.domain.Bug;
import io.metersphere.bug.service.BugService;
import io.metersphere.validation.groups.Created;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@ -15,7 +15,7 @@ import java.util.List;
* @author : jianxing
* @date : 2023-5-17
*/
@Api(tags = "缺陷")
@Schema(title = "缺陷")
@RestController
@RequestMapping("/bug")
public class BugController {

View File

@ -17,7 +17,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotNull;
import jakarta.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;