Running the task “foo” in the file below takes in excess of 90 seconds. I intend to be writing a task which uses this information to further perform some processing, but the amount of time this takes is making it virtually impossible to use gradle at the moment.
Note: I thought I was running gradle m6, but instead find myself running m5. (I am a ubuntu user, but for the moment am stuck at a mac and don’t quite know how to change versions using brew )
$ gradle --version
------------------------------------------------------------ Gradle 1.0-milestone-5 ------------------------------------------------------------
Gradle build time: Tuesday, October 25, 2011 9:26:08 AM GMT+05:30 Groovy: 1.7.10 Ant: Apache Ant™ version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.6.0_29 (Apple Inc. 20.4-b02-402) OS: Mac OS X 10.7.2 x86_64
build.gradle
apply plugin: ‘java’ apply plugin: ‘scala’ apply plugin: ‘osgi’
repositories {
mavenLocal()
mavenCentral()
maven {
url = ‘http://scala-tools.org/repo-releases’
}
maven {
url = ‘http://repo.typesafe.com/typesafe/releases’
}
maven {
url = ‘http://repository.codehaus.org/org/codehaus’
} }
dependencies {
scalaTools ‘org.scala-lang:scala-compiler:2.9.1’
scalaTools ‘org.scala-lang:scala-library:2.9.1’
compile ‘org.scala-lang:scala-library:2.9.1’
compile ‘org.scala-lang:scala-compiler:2.9.1’
compile ‘se.scalablesolutions.akka:akka-actor:1.3-RC2’
compile ‘se.scalablesolutions.akka:akka-remote:1.3-RC2’
compile ‘com.weiglewilczek.slf4s:slf4s_2.9.1:1.0.7’
compile ‘ch.qos.logback:logback-classic:1.0.0’
compile ‘org.osgi:org.osgi.core:4.1.0’
compile ‘org.osgi:org.osgi.compendium:4.2.0’
testCompile ‘junit:junit:4.5’
testCompile ‘org.specs2:specs2_2.9.1:1.6.1’
testCompile ‘org.specs2:specs2-scalaz-core_2.9.1:6.0.1’
testCompile ‘se.scalablesolutions.akka:akka-testkit:1.3-RC2’ }
jar {
manifest {
// deleted
} }
task foo << {
configurations.compile.each { println it } }