Intellij not including every file in build

Answered

I converting my JavaFX/TornadoFX project into a gradle project, I have all my resources in a package called resources... everything is working but when I build the project the packages, that don't contain any source code, don't move to the jar/build folder.

Since I am loading my fxml, css and font files from the package, I would need to tell intellij somehow to include this package...

Any ideas?

I tried creating marking the package as a resources but without any success

I also tried creating a tornadoFX project and then copying the files with the resource package... also did not work.

I tried creating a random class inside the resource package and only the class was copied to the jar/build folder

Is there a way how to tell intellij to include everything in the module not just the source code?

EDIT: For better understanding of my problem I added some screenshots

this is how my src dir looks like:

but when I build it (it does not contain the resource package...):

1
3 comments

See http://stackoverflow.com/questions/24724383/add-resources-config-files-to-your-jar-using-gradle and similar questions. It's a matter of Gradle configuration, not IntelliJ IDEA.

1
Avatar
Permanently deleted user

@Serge Baranov ok, thank you :) 

0

Please sign in to leave a comment.