【发布时间】:2021-01-28 20:40:32
【问题描述】:
我正在使用转换器将 maven 项目转换为 gradle。这是maven代码:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
这是转换器的作用:
testCompile "org.springframework.boot:spring-boot-starter-test:*"
我认为它做得很好。但是这个呢?
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
是否可以省略它或项目中的smth会被更改?
还有一个代码:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<type>jar</type>
</dependency>
如何将其转换为 gradle?标签类型的罐子让我很困惑。感谢您的建议。
【问题讨论】: