Is it possible to exclude package with a specific ...
# gradle
k
Is it possible to exclude package with a specific name from the build?
For example:
Copy code
sourceSets {
    main {
        java {
            srcDir 'src'
            exclude '**/someName/**'
        }
    }
}
This package repeats through the app,.
c
Various options for exclusions are documented here,
those are dependency exclusions; not clear if that is what you require. Excluding packages is unusual - perhaps that package should be a separate module,.
k
Thank you. I am looking for a solutions, having separate build directory is certainly one of them
c
perhaps look at creating a separate sub-project for this code, allowing it to be cleanly separated and distributed if-and-when needed.
134 Views