Hans Dockter wrote:
On Dec 25, 2008, at 5:03 PM, Haug Bürger wrote:
I have the JAX-WS jar file jaxws-tools.jar, how to define the
dependency? I have no version number in the name of the jar file. I
fixed it by renaming it but what's the real solution?
The current 'real' solution is a bit clumsy. With 0.5.1 we will make
this more convenient.
Current way:
dependencies {
addFlatDirResolver('myLocalRepo', 'someDirPath', 'someDirPath2',
...).addArtifactPattern('[artifact](-[revision]).[ext]') // In Gradle
0.5 we don't have brackets around '-revision', so a revision (aka
version) is required
compile ":jaxws-tools::"
}
In 0.5.1
dependencies {
addFlatDirResolver('myLocalRepo', 'someDirPath', 'someDirPath2', ...)
compile ":jaxws-tools::"
}
In general I'm wondering if a different notation would be better:
Our short cut notation is convenient for classic
<group>:<artifact>:<version> use case. But for special cases like
above this gets really cryptic (e.g. ":jaxws-tools::").
Instead we could do: compile [group: 'someGroup', artifact:
'someArtifact', version: 'version'], or in your case: compile
[artifact: 'jaxws-tools']. This is slightly more verbose, but more
expressive.
I much prefer this kind of of notation.
Adam
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email