Spring 如何在gradle中获取依赖项的元数据?
我想从Gradle那里得到关于我添加的每个依赖项的所有信息 我可以通过运行来获取依赖关系树Spring 如何在gradle中获取依赖项的元数据?,spring,spring-boot,gradle,kotlin,groovy,Spring,Spring Boot,Gradle,Kotlin,Groovy,我想从Gradle那里得到关于我添加的每个依赖项的所有信息 我可以通过运行来获取依赖关系树 grade dependencies 我们得到这样的东西 +--- io.springfox:springfox-swagger2:2.9.2 | +--- io.swagger:swagger-annotations:1.5.20 | +--- io.swagger:swagger-models:1.5.20 | | +--- com.fasterxml.jackson.co
grade dependencies
我们得到这样的东西
+--- io.springfox:springfox-swagger2:2.9.2
| +--- io.swagger:swagger-annotations:1.5.20
| +--- io.swagger:swagger-models:1.5.20
| | +--- com.fasterxml.jackson.core:jackson-annotations:2.9.5 -> 2.9.0
| | +--- org.slf4j:slf4j-api:1.7.22 -> 1.7.26
| | \--- io.swagger:swagger-annotations:1.5.20
| +--- io.springfox:springfox-spi:2.9.2 (*)
| +--- io.springfox:springfox-schema:2.9.2
| | +--- io.springfox:springfox-core:2.9.2 (*)
| | \--- io.springfox:springfox-spi:2.9.2 (*)
| +--- io.springfox:springfox-swagger-common:2.9.2
| | +--- io.swagger:swagger-annotations:1.5.20
| | +--- io.swagger:swagger-models:1.5.20 (*)
| | +--- io.springfox:springfox-spi:2.9.2 (*)
| | +--- io.springfox:springfox-schema:2.9.2 (*)
| | +--- io.springfox:springfox-spring-web:2.9.2 (*)
| | +--- com.google.guava:guava:20.0
| | +--- com.fasterxml:classmate:1.4.0
| | +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.26
| | +--- org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE (*)
| | \--- org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE (*)
| +--- io.springfox:springfox-spring-web:2.9.2 (*)
| +--- com.google.guava:guava:20.0
| +--- com.fasterxml:classmate:1.4.0
| +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.26
| +--- org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE (*)
| +--- org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE (*)
| \--- org.mapstruct:mapstruct:1.2.0.Final
但无法获取有关依赖项的所有其他信息
我如何才能做到这一点
更新
我想获取有关创建者、日期、库主页、库语言、许可证类型或任何可以提供的信息。Gradle不提供用于此操作的API 如果依赖项使用Maven POM文件或Ivy XML作为元数据,则可以通过
工件查询
访问这些文件。这是不可能的
但是,您必须决定提取哪些信息以及如何呈现这些信息。Gradle不提供用于此操作的API 如果依赖项使用Maven POM文件或Ivy XML作为元数据,则可以通过
工件查询
访问这些文件。这是不可能的
但是,您必须决定提取哪些信息以及如何呈现这些信息。您需要哪些信息?我将更新问题,以获取有关创建者、日期、图书馆主页、图书馆语言、,许可证类型或可提供的任何信息您需要哪些信息?我更新问题,以获取有关创建者、日期、库主页、库语言、许可证类型或可提供的任何信息