Closed vitalyper closed 1 month ago
For Counterclockwise's needs, I've written another flavor of this. It adds a config parameter to activate the feature, and just uses what is already configured via <namespaces/>
.
I will create a PR and we can talk about the merits of one and the other and hopefully come up with something that will be integrated.
When clojure compiler compiles namespace with gen-class directive it recursively pulls all dependent classes. See CLJ-322
In some maven build environments such behavior could be redundant. The following configuration will delete dependent class files from outputDirecotry after clojure's AOT compile step.
`
` Multiple keepNamespace elements are supported and clojure's namespace mangling rules are expected: