Gradle 版本上的 Axion 发布插件错误
Axion Release Plugin Error on Gradle Build
我一直在努力构建一个 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
好的,这是版本信息:
apply plugin: "pl.allegro.tech.build.axion-release" version '1.11.0'
使用:
apply plugin: "pl.allegro.tech.build.axion-release"
有效。
我一直在努力构建一个 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
好的,这是版本信息:
apply plugin: "pl.allegro.tech.build.axion-release" version '1.11.0'
使用:
apply plugin: "pl.allegro.tech.build.axion-release"
有效。