Collecting a project with Gradle. At the same time, only META-INF enters jar from resources. How to collect the remaining resources in the original jar?

The resources are:

META-INF somefolder somefile.yml 

build.gradle:

 plugins { id 'java' } group 'cathub' version '1.0' sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() maven { url "https://repo.nukkitx.com/snapshot" } } dependencies { testCompile 'cn.nukkit:nukkit:1.0-SNAPSHOT' compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5' compile group: 'org.hibernate', name: 'hibernate-core', version: '5.3.6.Final' compile group: 'org.hibernate', name: 'hibernate-validator', version: '6.0.13.Final' compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '5.3.6.Final' testCompile group: 'junit', name: 'junit', version: '4.12' } jar { manifest { attributes "Main-Class": "ru.cathub.Cathub" } } 
  • and where is the resources directory? - Vlad Mamaev
  • src / main / resources - Dinar Zaripov
  • And how do you see what got into the jar? - Vlad Mamaev
  • Opened jar archiver. And when I start a project, I get an error - the file was not found. - Dinar Zaripov
  • something is not agreed .. everything is added according to the above example - keekkenen

0