签署gradle插件

问题描述 投票:1回答:1

我在使用签名的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**


java gradle sign
1个回答
0
投票

发现一个现存的错误:https://github.com/gradle/gradle/issues/6860,从gradle 4.8开始,不支持已签名的插件,我尝试使用我的hello插件,它在gradle 4.7上有效

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.