MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    gradle buildPlugin 任务问题

    开发交流
    2
    2
    34
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GerryYuu last edited by

      b5cf8778-0d2d-4075-9597-5097afe91633-image.png
      我的 Mirai 插件依赖了 okhttp3 和 Spigot API(因为里面关于Yaml配置文件的API很好用)
      看了下其他类似的帖子 说是要用 gradlew buildPlugin 把依赖也打包进jar
      但是经过我实际测试发现使用 gradlew buildPlugin 不会将依赖也打包进去
      使用 gradlew buildPluginLegacy 就可以正常打包 请问是正常的嘛?

      1 Reply Last reply Reply Quote 0
      • cssxsh
        cssxsh last edited by

        2.11.0 之后的版本,buildPlugin 将不会把依赖打包到 mirai2.jar,依赖将会尝试在 mirai-console 加载时自动从 maven central 下载
        如果要让 buildPlugin 将依赖打包,需要特殊配置

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact