I have a gradle project like this:
root
|
|---- projectA
| |
| |----main
|
|---- projectB
| |
| |----test
...
projectA is upgrading springboot 1.0 to 2.0
projectA gradle.build is like this:
...
jar {
enabled = true
}
...
and projectB test is depend on project A
projectB gradle.build is like this:
...
dependencies {
testCompile project(':projectA')
}
...
a compile error happened when running ./gradlew :projectB:test
the error message is:
xxx.TestSupport.java:20: error: cannot access QueryManager
bad class file xxx/xxx/QueryManager.class
bad signature ¾4s9
the TestSupport.java is in projectB
the QueryManager is in projectA. And the querymanager class use lombok and ea.async.
the TestSupport.java's content is:
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, classes = {
MysqlConfigurationSelector.class
},
properties = {"query.mysql.nio.enable=true","query.mysql.port=9011"})
@RunWith(SpringRunner.class)
@ActiveProfiles("test")
public abstract class TestSupport {}
I have searched a lot but I couldn't find anything helpful.