build jars without test classes

In the Build > Build jars function, is there a way to build a jar without the test classes?

In the "Include in the jar file" area, there are four package methods, I'm using "copy module output to" method (and also tried others) and the produced jar contains everything in the module output including the test output.

3 comments
Comment actions Permalink

No, it isn't possible. You can create a Jira issue for this feature (http://jetbrains.net/jira/browse/IDEA).

In the Build > Build jars function, is there a way to build a jar without the test classes?

In the "Include in the jar file" area, there are four package methods, I'm using "copy module output to" method (and also tried others) and the produced jar contains everything in the module output including the test output.



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Hello Nikolay,

No, it isn't possible. You can create a Jira issue for this feature
(http://jetbrains.net/jira/browse/IDEA).

>> In the Build > Build jars function, is there a way to build a jar
>> without the test classes?
>>
>> In the "Include in the jar file" area, there are four package
>> methods, I'm using "copy module output to" method (and also tried
>> others) and the produced jar contains everything in the module output
>> including the test output.
>>

The issue already exists: http://www.jetbrains.net/jira/browse/IDEABKL-4520

Alexander.


0
Comment actions Permalink

thank you. I've voted.

I think that feature is really necessary. If we want to run test cases, we don't need to build a jar. And when we want to build a jar, it's likely we don't want the test cases.

0

Please sign in to leave a comment.