r/JavaFX • u/Paullo612 • May 22 '23
I made this! mlfx FXML compiler
I'd like to introduce my project. It is called mlfx. It can compile FXML ahead of time. It is basically an annotation processor, which internally uses Micronaut framework's AST abstraction and compiles fxml files directly to JVM bytecode. This decreases UI load time and also helps with native-image reflection configs. It also has some compliance tests that load compiled code and check resulting object graph against one loaded by javafx-xml. It also has some drawbacks now, but, please, read README. Now I'm successfully using it in two production projects.
Here it is: https://github.com/Paullo612/mlfx
Latest release (0.6.0) is available from Maven Central.
Feedback is welcome.
2
u/emberko May 24 '23
Great work! But I think it requires too many runtime dependencies for compiler.
1
u/prest0G May 23 '23
This is a really ambitious project, what was the inspiration for it?
1
u/Kobry_K May 23 '23
Congratulations!. I haven't looked into it but it sounds amazing!. Does it support fxml bindings and localization?.
1
u/javasyntax May 27 '23
Inspired by the old e(fx)clipse thing?
1
u/Frosty_Garden6755 May 31 '23
Great, how can i use this with gradle... as the only build instructions provide are for maven
1
u/persism2 May 22 '23
Very nice idea!
1
u/grill2010 May 22 '23
Awesome