Exclude code from jar without using exclude

Answered

So I have a project, in the project I have my main project with the package structure com.something.stuff. Under that I have several components com.something.stuff.special. The classes under special I am building into their own specific jars using an ant build. When I build the project I do not want the stuff for com.something.stuff.special to be included in the jar. I tried using the exclusion but this makes several of the features of code inspection not work. Is there a way to prevent classes from being added to a jar without using the exclusion feature?

0
1 comment

Excluding from jar artifact is not supported: https://youtrack.jetbrains.com/issue/IDEA-153998.

You will need to use Ant/Maven/Gradle to produce the jar artifacts if you require this customization.

0

Please sign in to leave a comment.