Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Jakarta annotations #68

Closed
maciejwalkowiak opened this issue May 3, 2023 · 3 comments
Closed

Use Jakarta annotations #68

maciejwalkowiak opened this issue May 3, 2023 · 3 comments

Comments

@maciejwalkowiak
Copy link

First of all thanks for getting this project back to life.

The generated classes are annotated with @javax.annotation.Generated. For Java 17+ projects, it should be @jakarta.annotation.Generated.

@maciejwalkowiak
Copy link
Author

I see now that perhaps it needs to be done in the actual generator project first: assertj/assertj-assertions-generator#194

@Nava2
Copy link
Collaborator

Nava2 commented May 3, 2023

Yep, it's not part of the plugin! Closing this as you've already linked the right issue. 👍🏻

@Nava2 Nava2 closed this as completed May 3, 2023
@timo-abele
Copy link

While we wait for the solution in the maven plugin to be merged, here is how to do the workaround presented here in gradle:

sourceSets {
    main {
        assertJ {
            templates {
                classes {
                    assertionClass.file("src/main/resources/assertj/templates/_ins_custom_assertion_class_template.txt")
                    entryPoints.assertions.file("src/main/resources/assertj/templates/_ins_standard_assertions_entry_point_class_template.txt")
                }
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants