jar and libs depends on test?

View: New views
2 Messages — Rating Filter:   Alert me  

jar and libs depends on test?

by Haakon Nilsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am just learning Gradle, and I'm liking it a lot so far.

I'm migrating an Ant Java project, and I''m a bit surprised that the jar and libs tasks depend on test. I can't even use an archive task to make a zip file with non-code resources without running through the tests (which fails right now). Is there any way around that?

Thanks!

Haakon Nilsen.


Re: jar and libs depends on test?

by Steve Appling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Run with -Dskip.test to skip all unit tests.

If you have a multi-project build, you may find "-a" useful also.  It will just
use the artifacts that are already build in the projects you depend on without
attempting to re-build (and test) them.

Haakon Nilsen wrote:

> Hello,
>
> I am just learning Gradle, and I'm liking it a lot so far.
>
> I'm migrating an Ant Java project, and I''m a bit surprised that the jar
> and libs tasks depend on test. I can't even use an archive task to make
> a zip file with non-code resources without running through the tests
> (which fails right now). Is there any way around that?
>
> Thanks!
>
> Haakon Nilsen.
>

--
Steve Appling
Automated Logic Research Team

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email