저는 JFrog Artifactory가 처음인데, 제 요구 사항은 다음과 같습니다. Artifactory를 사용하여 컴파일 종속성을 해결하고 Artifactory에 내장 된 아티팩트를 게시하고 싶습니다. 이제는 내 빌드에 gradle을 사용합니다. 또한 초기 자습서를 통해 저장소에 아티팩트를 게시 할 수 있습니다. 그러나 지금은 Artifactory를 사용하여 프로젝트를 컴파일 할 수 있기를 원합니다. 내 프로젝트에는 commons-logging 및 antlr과 같은 thirdparty 종속성이 있습니다.Artifactory에 thirdparty 의존성 저장소를 설정하십시오.
artifactory {
contextUrl = 'http://localhostr:8081/artifactory' //The base Artifactory URL if not overridden by the publisher/resolver
publish {
repository {
repoKey = 'gradle-dev-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
defaults {
publications ('mavenJava')
publishPom = false
}
}
resolve {
repository {
repoKey = 'gradle-dev'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.web
}
}
}
dependencies {
compile 'antlr:antlr:2.7.6',
'commons-logging:commons-logging:1.1'
}
지금 나는 내가 Gradle을 형식으로 내 Gradle을-DEV 저장소에 이러한 타사 dependecnies 어떻게해야합니까 알고 싶어 다음과 같이 내가 가지고있는 스크립트입니다. 전체적으로 내 grad 프로젝트는 약 40-50 명의 제 3자를 사용합니다. 이러한 모든 의존성을 내 Artifactory에 복사하는 더 간단한 방법이 있습니까? 사전에
감사
당신은 설정에 원격 저장소를 원할 것입니다