Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Gradle 和/或 IntelliJ 增加内部版本号?
这个问题与Android无关,它是普通的Java App。
增量应该发生在每次构建或特殊任务运行时。
我有以下行build.gradle
build.gradle
version = '0.1.3-SNAPSHOT'
显然,这不包含构建部分?
您可以使用 gradle release 插件,并且可以自动增加版本。
https://github.com/researchgate/gradle-release