r/java • u/TheMrMilchmann • Jun 05 '26
Introducing opt-in requirements for Java APIs
https://osmerion.github.io/OptIn/blog/welcome
50
Upvotes
r/java • u/TheMrMilchmann • Jun 05 '26
View all comments
Show parent comment
3
u/TheMrMilchmann Jun 05 '26
I'm not particularly happy with the CLI arg syntax myself, but I had to resort to URL encoding as a workaround for limitations. If you are using Gradle, there is a DSL for a global opt-in:
I plan to provide a similar convenience with a Maven plugin in the future.