How to access java-classes in the default-package?

前端 未结 5 1658
有刺的猬
有刺的猬 2020-11-21 13:18

I\'m working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that t

5条回答
  •  日久生厌
    2020-11-21 14:15

    Use jarjar to repackage the jar file with the following rule:

    rule * .@1
    

    All classes in the default package of the source jar file will move to the target package, thus are able to access.

提交回复
热议问题