Hello, I have just started using Artifactory with gradle. Well my question is:
How configure gradle to save resolved dependencies into Artifacory? How can I save configurations into Artifactory? For example:
configurations {
myproject{transitive=false}
}
And then settings for artifactory:
apply plugin:'artifactory'
....
repositories {
maven {
url 'http://localhost:8080/artifactory/gradle'
credentials {
username = "firas"
password = "{DESede}2Ok9jHOuZ5E="
}
}
flatDir { dirs "lib" }
}
dependencies {
classpath(group:'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.0.9')
....
// I look to do somthing like this below:
myprojet (group:'com.google.gwt', name:'gwt-dev', version:'2.5.0')
// can I do this?
myproject 'com.google.gwt:gwt-user:2.5.0'
artifactory {
contextUrl = "http://localhost:8080/artifactory"
//The base Artifactory URL if not overridden by the publisher/resolver
publish {
contextUrl = "http://localhost:8080/artifactory"
repository {
repoKey = 'gradle-local'
username = "firas"
password = "{DESede}SprHR/HoO0Oo/kLXklplSg=="
maven = false
ivy {
ivyLayout = '[organization]/[module]/ivy-[revision].xml'
artifactLayout = '[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]'
mavenCompatible = false
}
}
}
resolve {
contextUrl = "http://localhost:8080/artifactory"
repository {
repoKey = 'gradle'
username = "firas"
password = "{DESede}SprHR/HoO0Oo/kLXklplSg=="
maven = true
}
}
}
Thank you very much.