【发布时间】:2023-03-26 16:00:01
【问题描述】:
我一直在努力构建一个 Android 库并使用 Gradle 将其发布到 Azure Devops Artifacts。
我昨天终于发布了它,今天我遇到了自动版本的需要,所以我尝试使用这个插件:
https://plugins.gradle.org/plugin/pl.allegro.tech.build.axion-release
https://axion-release-plugin.readthedocs.io/en/latest/
所以,让它更短,我根本无法应用插件,我什至没有使用它,只是应用它,它立即中断。
关于原因的任何想法?
我是基于这个应用的:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "pl.allegro.tech.build:axion-release-plugin:1.11.0"
}
}
apply plugin: "pl.allegro.tech.build.axion-release" version '1.11.0'
我得到的错误是:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'core'.
* What went wrong:
A problem occurred evaluating root project 'core'.
> Cannot invoke method version() on null object
【问题讨论】:
标签: android gradle azure-devops build.gradle gradle-plugin