gradle 脚本中的点是正斜杠
dot is being taken is forward slash in gradle script
我正在尝试下面的代码
compile "release/20.02:HspJS:"
compile "${PLANNING_BRANCH_NAME_LOCATION}:EpmStructure:"
compile "${PLANNING_BRANCH_NAME_LOCATION}:EpmStructureModel:"
compile "${SM_BRANCH_NAME_LOCATION}:HSFServer:"
compile "${CALCMANAGER_BRANCH_NAME_LOCATION}:calcmgrcommon:"
我低于输出
http://artifacthub.com/epmpbcs-release-local/release/**20/02**/HspJS.jar
但所需的输出是
http://artifacthub.oraclecorp.com/epmpbcs-release-local/release/**20.02**/HspJS.jar
这是一个 gradle 文件。请让我知道我错过了什么
这与将工件坐标转换为 Maven Central 等存储库中的文件夹的方式有关。这使用点分名称的类似翻译,如应用于 Java 包。
例如,工件 com.fasterxml.jackson.core:jackson-core:<version>
位于 https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/<version>/jackson-core-<version>.jar
。
您尝试引用的工件似乎具有非标准布局(或者至少不是 Maven 布局)。我会期望像 release:HspJS:20.02
这样的坐标(然后会转换为位置 http://artifacthub.com/epmpbcs-release-local/release/HspJS/20.02/HspJS-20.02.jar
如果您的存储库使用非标准布局,那么您需要配置 gradle 以考虑到这一点。参见 Declaring repositories
鉴于示例,您可能需要将您的存储库声明为:
repositories {
ivy {
url "http://artifacthub.oraclecorp.com/epmpbcs-release-local"
patternLayout {
artifact "[module]/[revision]/[artifact].[ext]"
}
}
}
然后将您的依赖项声明为:
compile "release:HspJS:20.02"
我正在尝试下面的代码
compile "release/20.02:HspJS:"
compile "${PLANNING_BRANCH_NAME_LOCATION}:EpmStructure:"
compile "${PLANNING_BRANCH_NAME_LOCATION}:EpmStructureModel:"
compile "${SM_BRANCH_NAME_LOCATION}:HSFServer:"
compile "${CALCMANAGER_BRANCH_NAME_LOCATION}:calcmgrcommon:"
我低于输出
http://artifacthub.com/epmpbcs-release-local/release/**20/02**/HspJS.jar
但所需的输出是
http://artifacthub.oraclecorp.com/epmpbcs-release-local/release/**20.02**/HspJS.jar
这是一个 gradle 文件。请让我知道我错过了什么
这与将工件坐标转换为 Maven Central 等存储库中的文件夹的方式有关。这使用点分名称的类似翻译,如应用于 Java 包。
例如,工件 com.fasterxml.jackson.core:jackson-core:<version>
位于 https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/<version>/jackson-core-<version>.jar
。
您尝试引用的工件似乎具有非标准布局(或者至少不是 Maven 布局)。我会期望像 release:HspJS:20.02
这样的坐标(然后会转换为位置 http://artifacthub.com/epmpbcs-release-local/release/HspJS/20.02/HspJS-20.02.jar
如果您的存储库使用非标准布局,那么您需要配置 gradle 以考虑到这一点。参见 Declaring repositories
鉴于示例,您可能需要将您的存储库声明为:
repositories {
ivy {
url "http://artifacthub.oraclecorp.com/epmpbcs-release-local"
patternLayout {
artifact "[module]/[revision]/[artifact].[ext]"
}
}
}
然后将您的依赖项声明为:
compile "release:HspJS:20.02"