bowbahdoe / magic-bean

A very basic library which will generate getters and setters.
Other
84 stars 10 forks source link

Automatic Intellij Refreshing #23

Closed funkrusher closed 1 month ago

funkrusher commented 1 month ago

Hello,

really nice project!

When working in Intellij IDEA, when editing/writing a new Bean like this...

import dev.mccue.magicbean.MagicBean;

import java.util.List;

@MagicBean
public final class Example extends ExampleBeanOps {
    int x;
    String name;
    List<String> strs;
}

... the next step for me (using gradle) is to go to the console and write:

./gradlew compileJava

After i execute this statement the magic-beans creates the ExampleBeanOps as expected.

It would be great if Intellij would be able to automatically do this in the background somehow.

An accetable solution would be:

A non-plugin solution is preferred.

funkrusher commented 1 month ago

ah well, never mind.

i just need to click "build" or "rebuild project" in intellij, and everything works after clicking this button. That is already good enough in my opinion.

Intellij automatically configures the annotation processor for the gradle build via "gradle refresh" or when first importing the project into intellij.

For me its fine.

bowbahdoe commented 1 month ago

Yeah - obviously an IntelliJ plugin would make that process smoother, but sans a plugin thats the experience you get.