Hi,
while executing gardle war it is including .java files in the war how to exclude all .java from war
sourceSets {
gen {
java {
srcDir 'app/GeneratedSource'
}
}
dao {
java {
srcDir 'app/JavaSource'
exclude 'gov/fd/vc/svc/**'
}
compileClasspath += gen.output
}
svc {
java {
srcDir 'app/JavaSource'
exclude 'gov/fd/vc/dao/**'
}
compileClasspath += gen.output
compileClasspath += dao.output
}
main {
java {
srcDir 'web/JavaSource'
}
resources {
srcDir 'app/GeneratedSource'
srcDir 'app/JavaSource'
srcDir 'web/JavaSource'
}
compileClasspath += svc.output
}
}
configurations {
genCompile.extendsFrom compile
daoCompile.extendsFrom compile
svcCompile.extendsFrom compile
}
please where iam doing mistake to define custom source set.