title: Axion Release Plugin Error on Gradle Build
body: <p>I’ve been struggling to build an Android lib and publish it to Azure Devops Artifacts using Gradle.</p>
  
  <p>I finally published it yesterday, and today I came across the need to version it automatically, so I’m trying to use this plugin:
  <a href="https://plugins.gradle.org/plugin/pl.allegro.tech.build.axion-release" rel="nofollow noreferrer">https://plugins.gradle.org/plugin/pl.allegro.tech.build.axion-release</a><br/>
  <a href="https://axion-release-plugin.readthedocs.io/en/latest/" rel="nofollow noreferrer">https://axion-release-plugin.readthedocs.io/en/latest/</a></p>
  
  <p>So, making it shorter, I’m simply not able to apply the plugin, I’m not even using it, just applied it, and it breaks instantly.</p>
  
  <p>Any ideas on the reason?</p>
  
  <p>I applied it based on this:</p>
  
  <pre><code>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'
  </code></pre>
  
  <p>The error I’m getting is this:</p>
  
  <pre><code>org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'core'.
  
  * What went wrong:
  A problem occurred evaluating root project 'core'.
  &gt; Cannot invoke method version() on null object
  </code></pre>