目前,我正在使用maven将此文件安装到maven本地存储库,然后在稍后的应用程序gradle构建中,我将获得此工件的依赖项。
mvn install:install-file -Dfile=locallib/wlthint3client.jar -DgeneratePom=true -DgroupId=com.oracle.weblogic -DartifactId=wlthint3client -Dversion=10.3 -Dpackaging=jarbuild.gradle中的依赖项
compile("com.oracle.weblogic:wlthint3client:10.3")有没有办法使用gradle将文件安装到gradle本地缓存中?
提前谢谢。
-Vidya
发布于 2018-02-06 12:47:25
我有解决这个问题的办法。我正在使用gradle本身将其推送到maven本地存储库。
来自build.gradle的代码片段:
configurations {
resultArchives
}
uploadResultArchives {
repositories {
mavenDeployer {
repository(url: mavenLocal().url)
pom.version = '10.3'
pom.artifactId = 'wlthint3client'
pom.groupId = 'com.oracle.weblogic'
}
}
}
artifacts{
resultArchives file: file('locallib/wlthint3client.jar')
}将工件推送到maven本地存储库
gradle uploadResultArchives https://stackoverflow.com/questions/48575603
复制相似问题