kt3k / ebean-enhance-plugin

A gradle plugin for enhancing ebean entities.
MIT License
4 stars 4 forks source link

Breaks for 7.6.1 #3

Open amalagaura opened 8 years ago

amalagaura commented 8 years ago

Thank you for the excellent plugin. It was working great, but when I upgraded ebean to the latest version the enhancement no longer works. I did some bisecting and it works on 7.5.1 but fails on 7.6.1.

I have a simple project with a single model. The following jar build command works on 7.5.1 but fails on 7.6.1

gradle clean shadowJar

I do have other plugins, including kotlin, net.yhf.build-profiles and shadowJar but they all work for any ebean version up to 7.5.1.

On the release notes I do see some classpath changes on 7.6.1.

Following is 7.5.1 (working)

16:53:36 [main] INFO com.avaje.ebeaninternal.server.core.BootupClassPathSearch - Classpath search hits in jars [all.jar] pkgs [model] searchTime [1260]
16:53:36 [main] INFO org.avaje.datasource.pool.ConnectionPool - DataSourcePool [pg] autoCommit[false] transIsolation[READ_COMMITTED] min[2] max[100]
16:53:36 [main] INFO com.avaje.ebean.internal.DefaultContainer - DatabasePlatform name:pg platform:postgres
16:53:37 [main] INFO com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager - Entities enhanced[1]

Not working 7.6.1: (classpath issues I assume)

17:00:09 [main] WARN org.avaje.classpath.scanner.internal.scanner.classpath.ClassPathScanner - Unable to resolve location classpath:
17:00:09 [main] INFO com.avaje.ebeaninternal.server.core.BootupClassPathSearch - Classpath search entities[0] searchTime [2]
17:00:09 [main] INFO org.avaje.datasource.pool.ConnectionPool - DataSourcePool [pg] autoCommit[false] transIsolation[READ_COMMITTED] min[2] max[100]
17:00:09 [main] INFO com.avaje.ebean.internal.DefaultContainer - DatabasePlatform name:pg platform:postgres
17:00:09 [main] INFO com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager - Entities enhanced[0]

This is the breaking change in 7.6.1 https://github.com/ebean-orm/avaje-ebeanorm/issues/634

amalagaura commented 8 years ago

I tried deploying my own version of your plugin and changing to 4.11.1 of the agentloader and it did not resolve the issue.

BTW the enhancement still works in Intellij via the Ebean ORM plugin