[英]Axion Release Plugin Error on Gradle Build
我一直在努力構建一個 Android 庫並使用 Gradle 將其發布到 Azure Devops Artifacts。
我昨天終於發布了它,今天我遇到了自動版本的需要,所以我嘗試使用這個插件: https : //plugins.gradle.org/plugin/pl.allegro.tech.build.axion-釋放
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"
有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.