【问题标题】:Axion Release Plugin Error on Gradle BuildGradle Build 上的 Axion 发布插件错误
【发布时间】: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


    【解决方案1】:

    好的,这是版本信息: apply plugin: "pl.allegro.tech.build.axion-release" version '1.11.0'

    使用: apply plugin: "pl.allegro.tech.build.axion-release"

    有效。

    【讨论】:

      猜你喜欢
      • 2015-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-23
      • 2023-03-19
      • 2023-03-23
      相关资源
      最近更新 更多