I’ve create this gradle script using ‘eclipse’ plugin.
configurations {
jpamodelgen
querydsl
}
sourceSets {
jpamodelgen {
java {
srcDirs = ['src/main/java/com/living/persistence/entities']
}
}
querydsl {
java {
srcDirs = [
'src/main/java/com/living/persistence/entities',
'src/main/java/com/living/persistence/entities/metainfos/values',
'src/main/java/com/living/persistence/entities/metainfos',
'src/main/java/com/living/rest/dto/metainfos'
]
}
}
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
//customizing the classes output directory:
defaultOutputDir = file('build-eclipse')
minusConfigurations += [ configurations.querydsl ]
}
}
As you can see I’m excluing configurations.querydsl
configuration from classpath. However, the content of srcDirs
is added as Build Path in eclipse project.
How can I solve it?