gpt4 book ai didi

java - 签署 gradle 插件

转载 作者:太空宇宙 更新时间:2023-11-04 09:05:12 26 4
gpt4 key购买 nike

我在使用签名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上运行

关于java - 签署 gradle 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60291932/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com