有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java签署gradle插件

我在使用签名jar发布gradle插件时遇到了“签名者信息与同一包中其他类的签名者信息不匹配”的问题,为了测试它,我创建了一个gradle-hello-plugin,并对jar进行了签名:(https://github.com/andxu/gradle-hello-plugin/blob/master/signed-gradle-hello-plugin-1.0.0-SNAPSHOT.jar),我在运行“gradle hello”时遇到了以下错误,有人知道如何发布签名的gradle插件吗?谢谢

* What went wrong:
A problem occurred evaluating root project 'test-project'.
> Failed to apply plugin [id 'org.example.greeting']
   > Could not create task ':hello'.
      > Could not create task of type 'Greeting'.
         > Could not generate a decorated class for class org.example.greeting.Greeting.
            > class "org.example.greeting.Greeting_Decorated"'s **signer information does not match signer information of other classes in the same package**



共 (1) 个答案