0

我正在尝试将 codeartifact aws 库导入我的 gradle 代码段 intellij:

implementation platform('software.amazon.awssdk:bom:2.17.140')
  implementation (group: 'software.amazon.awssdk', name: 'codeartifact'){
    //Exclude transitive dependency
    exclude group: 'io.netty'
  }

当我调用模块的“依赖”任务时,我确实看到了依赖:

 ./gradlew :project:module:dependencies | findstr "codeartifact"
|    +--- software.amazon.awssdk:codeartifact:2.17.140 (c)
+--- software.amazon.awssdk:codeartifact -> 2.17.140
+--- software.amazon.awssdk:codeartifact (n)
|    +--- software.amazon.awssdk:codeartifact:2.17.140 (c)
+--- software.amazon.awssdk:codeartifact -> 2.17.140
|    +--- software.amazon.awssdk:codeartifact:2.17.140 (c)
+--- software.amazon.awssdk:codeartifact -> 2.17.140
|    +--- software.amazon.awssdk:codeartifact:2.17.140 (c)
+--- software.amazon.awssdk:codeartifact -> 2.17.140

但是当我尝试将包导入到代码中时,它会抱怨: 知道我做错了什么吗?在此处输入图像描述

4

0 回答 0