This message was deleted.
# kotlin-dsl
s
This message was deleted.
v
That has nothing to do with #CAD95CR62. With
srcDirs
you just add new ones. If you use
setSrcDirs
you should be able to empty it I think.
a
setSrcDirs is not a valid method unfortunately Also apologies since I didn't exactly know where to post this question.
Never mind it exists like this.
Copy code
sourceSets {
    main {
        java {
            setSrcDirs()
        }
    }
}
I'll test it
v
Also apologies since I didn't exactly know where to post this question.
If in doubt / no appropriate specific channel, then #CAHSN3LDN is the place to go. 🙂
Never mind it exists like this.
Copy code
sourceSets {
    main {
        java.setSrcDirs(emptyList<Any>())
    }
}
and
Copy code
sourceSets {
    main {
        java {
            setSrcDirs(emptyList<Any>())
        }
    }
}
should both work the same, it's just syntax sugar. While
Copy code
sourceSets {
    main {
        java.setSrcDirs()
    }
}
and
Copy code
sourceSets {
    main {
        java {
            setSrcDirs()
        }
    }
}
should both not work as both miss the argument.