Hello,
I am new to Gradle and have little knowledge of Ant or Maven.
I am missing an example for a simple script which would just compile and
jar a project.
The only helpful example I found :
http://www.alittlemadness.com/2008/11/28/maven-pain-gradle/
I am trying the following script. But I cannot get Gradle to use the
classpath.
I also had to comment out the name, since this causes an exception
(Readonly property)
So the next question is: how do I tell Gradle the name of the jar to
generate ?
- Ron
build.gradle:
defaultTasks "libs"
//name = 'test'
archivesBaseName = ''
version = 'alpha-4.2'
usePlugin('java')
sourceCompatibility = 1.5
targetCompatibility = 1.5
srcDirNames = ['.']
List findAllJars() {
result = []
new File('lib').eachDirRecurse(
{
dir ->
dir.eachFileMatch(
'.*\\.jar',
{
file ->
result.add(file)
})
})
result
}
compile.unmanagedClasspath = findAllJars()
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email