mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-04-30 06:37:29 +00:00
refactor(extension): 在 MavenRepositoryExtensionFinder 增加一个扩展包信息日志.
当初写的时候没留意这个问题, 结果最近给坑了, 所以补个日志, 打印出 Maven 搜索器所解析出来的构件信息.
This commit is contained in:
parent
93b9c6b727
commit
f79a4e4ff3
@ -283,6 +283,12 @@ internal class MavenRepositoryExtensionFinder(
|
|||||||
return emptySet()
|
return emptySet()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.info {
|
||||||
|
"已从 Maven 仓库 `${extensionArtifactResult.repository.id}` 中找到" +
|
||||||
|
"扩展包 `${resolvedArtifact.groupId}:${resolvedArtifact.artifactId}` " +
|
||||||
|
"版本号 `${resolvedArtifact.version}`."
|
||||||
|
}
|
||||||
|
|
||||||
val request = DependencyRequest(
|
val request = DependencyRequest(
|
||||||
CollectRequest(Dependency(extResolvedArtifact, null), remoteRepositories),
|
CollectRequest(Dependency(extResolvedArtifact, null), remoteRepositories),
|
||||||
ScopeDependencyFilter(setOf("runtime", "compile", "provided"), null)
|
ScopeDependencyFilter(setOf("runtime", "compile", "provided"), null)
|
||||||
|
Loading…
Reference in New Issue
Block a user