[英]Sign a gradle plugin
我在使用簽名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**
找到一個現有的錯誤: https : //github.com/gradle/gradle/issues/6860 ,從 gradle 4.8 開始,不支持簽名插件,我嘗試使用我的 hello 插件,它適用於 gradle 4.7
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.