3.5.2 Dependency Repositories - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
3.5.2 Dependency Repositories
Remote Repositories
Griffon, when installed, does not use any remote public repositories. There is a defaultgriffonHome()
repository that will locate the JAR files Griffon needs from your Griffon installation. If you want to take advantage of a public repository you need to specify as such inside the repositories
block:repositories { mavenCentral() }
ebr()
method:repositories { ebr() }
repositories {
mavenRepo "http://repository.codehaus.org"
}
Local Resolvers
If you do not wish to use a public Maven repository you can specify a flat file repository:repositories { flatDir name:'myRepo', dirs:'/path/to/repo' }
Custom Resolvers
If all else fails since Griffon builds on Apache Ivy you can specify an Ivy resolver:repositories {
resolver new URLResolver(...)
}
Authentication
If your repository requires some form of authentication you can specify as such using acredentials
block:credentials { realm = ".." host = "localhost" username = "myuser" password = "mypass" }
USER_HOME/.griffon/settings.groovy
file using the griffon.project.ivy.authentication
setting:griffon.project.ivy.authentication = { credentials { realm = ".." host = "localhost" username = "myuser" password = "mypass" } }