简体   繁体   English

签署一个gradle插件

[英]Sign a gradle plugin

I have met an issue of "signer information does not match signer information of other classes in the same package" when releasing a gradle plugin using a signed jar, for testing it, I created a gradle-hello-plugin , and signed the jar: ( https://github.com/andxu/gradle-hello-plugin/blob/master/signed-gradle-hello-plugin-1.0.0-SNAPSHOT.jar ), I met the following error when I run 'gradle hello', does someone know how to release a gradle plugin signed?我在使用签名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 插件吗? Thanks.谢谢。

* 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**


找到一个现有的错误: https : //github.com/gradle/gradle/issues/6860 ,从 gradle 4.8 开始,不支持签名插件,我尝试使用我的 hello 插件,它适用于 gradle 4.7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM