This message was deleted.
# general
s
This message was deleted.
e
not sure if this is the best approach, but you can create a few feature variants; all of them will be published by default.
Copy code
$ ./gradlew publishToMavenLocal
$ ls ~/.m2/repository/example/example/1.0/
example-1.0-brand1.jar
example-1.0-brand2.jar
example-1.0.jar
example-1.0.module
example-1.0.pom
$ java -classpath build/libs/example-1.0-brand1.jar example.Main
brand1
$ java -classpath build/libs/example-1.0-brand2.jar example.Main
brand2