-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
test entities don't get enhanced after upgrade to 13.6.5 #2889
Comments
just for completeness, the query beans and |
maybe I found the source of the problem - shouldn't this line https:/ebean-orm-tools/ebean-gradle-plugin/blob/master/src/main/groovy/io/ebean/gradle/EnhancePlugin.groovy#L112 also check for |
btw the fact that |
I checked this by adding the ebean-gradle-plugin to my local buildSrc and making the aforementioned change there and it indeed fixes the problem. This can be seen in this branch Incanus3/ebean-test@main...fix-test-fixture-enhancement-locally and specifically this commit Incanus3/ebean-test@d6bba45, which fixes the test |
I have also opened a PR here ebean-orm-tools/ebean-gradle-plugin#34 |
Yes that seems to be the reason. Generally the Gradle plugin needs some love to support configuration avoidance and to make it iterate through all source sets to configure them (then |
ok, so is there anything else I can do at this stage, or is my PR acceptable as it is for now? |
btw before this gets fixed and released in upstream, is it ok if I temporarily add the plugin source code to our (commercial) project's buildSrc, or does that somehow break the licensing laws? I'll of course keep the license file there, but I don't see any authoring comments in the source files. |
Yes you can, its standard Apache2 license and yes you can copy and redistribute source with the usual Apache2 license restrictions on copyright, patent, etc. In a similar way of thinking you can have and maintain your own private fork or public fork. |
ok, thanks for the reply. and I see you've already merged my PR, so thanks again. btw, do you already have some timeline for the 13.10.2 release? |
Fixed with ebean-gradle-plugin 13.10.2 via ebean-orm-tools/ebean-gradle-plugin#34 |
Just released. Should be in central in about 15 minutes. |
you're amazing. just upgraded and everything works like a charm. the local buildSrc copy of the patched plugin didn't even make it to master ;). also appreciate the platforms added to the BOM. thanks again so much for the great work you're doing. |
Thanks. It's great to get positive feedback and know that people appreciate the work that goes into this project. Cheers, Rob. |
Sorry to bother again, but after resolving #2888 we encountered another problem with the upgrade to 13.6.5.
Expected behavior
enhance test entities correctly
Actual behavior
DatabaseFactory.create()
call fails withBeanNotEnhancedException
Steps to reproduce
main
source root, but in thetest
oneNotes
testFixtures
, which never seemed to work) up till the version 13.6.4, but after upgrading to 13.6.5 (and kotlin 1.7) the test entity no longer gets enhancedkaptTest
line here https:/Incanus3/ebean-test/blob/main/ea/db/build.gradle.kts#L21 even though this wasn't needed before, but I thought it might betest
source root (except for the generated_Ebean$ModuleInfo
) are even considered for enhancement any moreThe text was updated successfully, but these errors were encountered: