him trying to add a custom jar task to my build (please see below).
the build works fine. the custom jar task is not finding any classes.
thanks
apply plugin: ‘java’ repositories { mavenCentral() } sourceSets.main.java.srcDirs = [“src”] sourceSets.test.java.srcDirs = [“tst”] sourceSets.main.resources.srcDirs = [“src”]
dependencies {
compile fileTree(dir: ‘lib’, includes: [’*.jar’])
testCompile group: ‘junit’,name:‘junit’,version: ‘4.8+’ }
task smallJar(type:Jar) {
archiveName=‘small.jar’
from sourceSets.main.classes
include ‘com.tayek.hrm/’, 'com.tayek.qanda/’ }