Hmmm.. don't know why you're having issues... I just re-ran it from a clean M2 repository and everything downloaded fine:
boisvert@smudge:~/tmp/gist-3188848$ buildr --version Buildr 1.4.7 boisvert@smudge:~/tmp/gist-3188848$ buildr foo (in /home/boisvert/tmp/gist-3188848, development) Building buildr-flatspec Compiling buildr-flatspec into /home/boisvert/tmp/gist-3188848/target/classes Downloading org.apache.ant:ant:jar:1.8.3 Downloading http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3.jar ant-1.8.3.jar: 100% |...........................................................................................................................| 1.8MB/1.8MB Time: 00:00:01 Downloading org.apache.ant:ant:pom:1.8.3 Downloading http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3.pom ant-1.8.3.pom: 100% |...........................................................................................................................| 9.4KB/9.4KB Time: 00:00:00 Downloading org.apache.ant:ant-launcher:jar:1.8.3 Downloading http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.8.3/ant-launcher-1.8.3.jar ant-launcher-1.8.3.jar: 100% |.................................................................................................................| 18.0KB/18.0KB Time: 00:00:00 Downloading org.apache.ant:ant-launcher:pom:1.8.3 Downloading http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.8.3/ant-launcher-1.8.3.pom ant-launcher-1.8.3.pom: 100% |..................................................................................................................| 2.3KB/2.3KB Time: 00:00:00 Downloading org.scala-tools:vscaladoc:jar:1.2-m1 Downloading http://repo1.maven.org/maven2/org/scala-tools/vscaladoc/1.2-m1/vscaladoc-1.2-m1.jar vscaladoc-1.2-m1.jar: 100% |..................................................................................................................| 291.2KB/291.2KB Time: 00:00:00 Downloading org.scala-tools:vscaladoc:pom:1.2-m1 Downloading http://repo1.maven.org/maven2/org/scala-tools/vscaladoc/1.2-m1/vscaladoc-1.2-m1.pom vscaladoc-1.2-m1.pom: 100% |....................................................................................................................| 8.6KB/8.6KB Time: 00:00:00 Downloading org.scalatest:scalatest_2.9.1:jar:1.6.1 Downloading http://repo1.maven.org/maven2/org/scalatest/scalatest_2.9.1/1.6.1/scalatest_2.9.1-1.6.1.jar scalatest_2.9.1-1.6.1.jar: 100% |...............................................................................................................| 2.6MB/2.6MB Time: 00:00:02 Downloading org.scalatest:scalatest_2.9.1:pom:1.6.1 Downloading http://repo1.maven.org/maven2/org/scalatest/scalatest_2.9.1/1.6.1/scalatest_2.9.1-1.6.1.pom scalatest_2.9.1-1.6.1.pom: 100% |...............................................................................................................| 4.0KB/4.0KB Time: 00:00:00 Downloading org.scala-tools.testing:scalacheck_2.9.1:jar:1.9 Downloading http://repo1.maven.org/maven2/org/scala-tools/testing/scalacheck_2.9.1/1.9/scalacheck_2.9.1-1.9.jar scalacheck_2.9.1-1.9.jar: 100% |..............................................................................................................| 769.9KB/769.9KB Time: 00:00:00 Downloading org.scala-tools.testing:scalacheck_2.9.1:pom:1.9 Downloading http://repo1.maven.org/maven2/org/scala-tools/testing/scalacheck_2.9.1/1.9/scalacheck_2.9.1-1.9.pom scalacheck_2.9.1-1.9.pom: 100% |................................................................................................................| 1.3KB/1.3KB Time: 00:00:00 Downloading org.jmock:jmock:jar:2.5.1 Downloading http://repo1.maven.org/maven2/org/jmock/jmock/2.5.1/jmock-2.5.1.jar jmock-2.5.1.jar: 100% |.......................................................................................................................| 135.0KB/135.0KB Time: 00:00:00 Downloading org.jmock:jmock:pom:2.5.1 Downloading http://repo1.maven.org/maven2/org/jmock/jmock/2.5.1/jmock-2.5.1.pom jmock-2.5.1.pom: 100% |..........................................................................................................................| 806B/806B Time: 00:00:00 Downloading org.jmock:jmock-junit4:jar:2.5.1 Downloading http://repo1.maven.org/maven2/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.5.1.jar jmock-junit4-2.5.1.jar: 100% |..................................................................................................................| 8.4KB/8.4KB Time: 00:00:00 Downloading org.jmock:jmock-junit4:pom:2.5.1 Downloading http://repo1.maven.org/maven2/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.5.1.pom jmock-junit4-2.5.1.pom: 100% |..................................................................................................................| 1.0KB/1.0KB Time: 00:00:00 Downloading org.hamcrest:hamcrest-core:jar:1.1 Downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar hamcrest-core-1.1.jar: 100% |..................................................................................................................| 74.8KB/74.8KB Time: 00:00:00 Downloading org.hamcrest:hamcrest-core:pom:1.1 Downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom hamcrest-core-1.1.pom: 100% |....................................................................................................................| 481B/481B Time: 00:00:00 Downloading org.hamcrest:hamcrest-library:jar:1.1 Downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.jar hamcrest-library-1.1.jar: 100% |..............................................................................................................| 108.9KB/108.9KB Time: 00:00:00 Downloading org.hamcrest:hamcrest-library:pom:1.1 Downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.pom hamcrest-library-1.1.pom: 100% |.................................................................................................................| 683B/683B Time: 00:00:00 Downloading junit:junit:jar:4.8.2 Downloading http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar junit-4.8.2.jar: 100% |.......................................................................................................................| 231.8KB/231.8KB Time: 00:00:00 Downloading junit:junit:pom:4.8.2 Downloading http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.pom junit-4.8.2.pom: 100% |.........................................................................................................................| 1.4KB/1.4KB Time: 00:00:00 Downloading org.mockito:mockito-all:jar:1.8.5 Downloading http://repo1.maven.org/maven2/org/mockito/mockito-all/1.8.5/mockito-all-1.8.5.jar mockito-all-1.8.5.jar: 100% |...................................................................................................................| 1.4MB/1.4MB Time: 00:00:01 Downloading org.mockito:mockito-all:pom:1.8.5 Downloading http://repo1.maven.org/maven2/org/mockito/mockito-all/1.8.5/mockito-all-1.8.5.pom mockito-all-1.8.5.pom: 100% |....................................................................................................................| 858B/858B Time: 00:00:00 Compiling buildr-flatspec:test into /home/boisvert/tmp/gist-3188848/target/test/classes Running tests in buildr-flatspec ScalaTest "org.example.FooSuite" Run starting. Expected test count is: 1 FooSuite: Foo - should have bar equal to 42 Run completed in 98 milliseconds. Total number of tests run: 1 Suites: completed 1, aborted 0 Tests: succeeded 1, failed 0, ignored 0, pending 0 All tests passed. Completed in 23.180s On Fri, Jul 27, 2012 at 9:50 AM, Anthony Bargnesi <[email protected]>wrote: > Still cannot resolve that dependency. The sonatype repository at > https://oss.sonatype.org/content/repositories/releases/org/scalatest/ > > does not contain org.scalatest:scalatest_2.9.:jar:1.6.1 > > The gist had an extra quote at the end of line 6 as well. > > Tony > > On Fri, Jul 27, 2012 at 12:43 PM, Alex Boisvert <[email protected] > >wrote: > > > Oh right, the repository has changed. Updated the gist to add the > Sonatype > > repo. > > > > (This has been fixed in trunk already; and I already had the artifacts > > locally). > > > > alex > > > > > > On Fri, Jul 27, 2012 at 9:39 AM, Anthony Bargnesi <[email protected] > > >wrote: > > > > > Thanks for putting the gist together. The test step failed trying to > > > retrieve an older version > > > of ScalaTest. > > > > > > Here is the output: > > > > > > [tony@starship 3188848]$ ~/tools/buildr-1.4.7/bin/buildr clean test > > > > > > > > > /home/tony/.gem/ruby/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:596: > > > Use Rbfig. > > > /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv > > will > > > be deprecate > > > (in /home/tony/work/git/3188848, development) > > > Cleaning buildr-flatspec > > > Testing buildr-flatspec > > > Compiling buildr-flatspec into > /home/tony/work/git/3188848/target/classes > > > Downloading org.scalatest:scalatest_2.9.:jar:1.6.1 > > > Buildr aborted! > > > RuntimeError : Failed to download > org.scalatest:scalatest_2.9.:jar:1.6.1, > > > tried the fol > > > http://scala-tools.org/repo-releases/ > > > http://scala-tools.org/repo-snapshots/ > > > http://repo1.maven.org/maven2/ > > > > > > Thanks! > > > Tony > > > > > > On Fri, Jul 27, 2012 at 12:21 PM, Alex Boisvert < > [email protected] > > > >wrote: > > > > > > > FlatSpec extends org.scalatest.Suite so it should be picked up as > well. > > > > > > > > I've just tested it locally with a small project and it works as > > > expected. > > > > > > > > I've created a gist that you can download/clone > > > > https://gist.github.com/3188848 to try out. > > > > > > > > On Fri, Jul 27, 2012 at 8:11 AM, Anthony Bargnesi < > [email protected] > > > > >wrote: > > > > > > > > > Hello, > > > > > > > > > > I have a project in scala that I'm attempting to test with > > > > > buildr/ScalaTest. It is configured like: > > > > > > > > > > > > > > > define 'scala.project' do > > > > > require 'buildr/scala' > > > > > Buildr.settings.build['scala.version'] = "2.9.1" > > > > > test.using :scalatest > > > > > compile.using :target => '1.5' > > > > > compile.with SCALA_TEST > > > > > package(:jar, :id => PICKUP + 'scala.project').with \ > > > > > :manifest => file(MANIFEST), > > > > > :meta_inf => file(SPRING_META) > > > > > > > > > > end > > > > > > > > > > > > > > > > > > > > I have two org.scalatest.FlatSpec specification tests that I want > to > > > > > run. I ran "buildr test" and "buildr test --trace" and did not see > > > > > these tests run. > > > > > > > > > > > > > > > The documentation says that ScalaTest's org.scalatest.Suite classes > > > > > will be picked up, but what about the FlatSpec classes? > > > > > > > > > > > > > > > Thanks! > > > > > > > > > > Tony > > > > > > > > > > > > > > >
