简体   繁体   English

如何在JitPack中更改版本?

[英]How to change the version in JitPack?

I published my library on GitHub and connected it with JitPack. 我在GitHub上发布了我的库并将其与JitPack连接。 The current version is 1.0. 当前版本是1.0。 How can I change the version to 1.1? 如何将版本更改为1.1? I changed the version in buiild.gradle, but it didn't help. 我在buiild.gradle中更改了版本,但它没有帮助。 What to do? 该怎么办?

To make a new version create a GitHub release . 要创建新版本,请创建GitHub版本

Source: https://jitpack.io/docs/#publishing-on-jitpack 资料来源: https//jitpack.io/docs/#publishing-on-jitpack

From jitpack docs 来自jitpack文档

-SNAPSHOT will build the latest commit on the master branch. -SNAPSHOT将在master分支上构建最新的提交。 It depends on your build tool how often it checks for new snapshot versions. 这取决于您的构建工具检查新快照版本的频率。 or example, in Gradle add these lines to check for new versions on every build: 或者示例,在Gradle中添加以下行以检查每个构建的新版本:

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

Or you could also run Gradle from the command line with the --refresh-dependencies flag 或者您也可以使用--refresh-dependencies标志从命令行运行Gradle

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

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