title: Gradle Upgrade issue: java.lang.IllegalArgumentException: Version must not be null o empty
body: <p>we are facing issue while upgrading gradle 5.6 to gradle 7.2.</p>
  <p>we have simple spring boot project(sub1) with one internal spring library project(sub 2). while sub2 is gradle spring lib which depends on sub1. Both projects are using same gradle and spring boot version.</p>
  <p>Also we are trying to upgrade spring cloud to latest version which requires gradle upgrade and spring boot upgade. current version is shown below</p>
  <ol>
  <li>gradle - 7.2</li>
  <li>spring - 2.5.2</li>
  <li>swagger - 2.9.2</li>
  </ol>
  <p>Getting below error while I try hitting swagger url.</p>
  <p><code>java.lang.IllegalArgumentException: Version must not be null o empty</code></p>
  <p>Spring boot banner is blank and not showing version. we are suspecting this could be the issue.</p>
  <p>Swagger home page shows below error:</p>
  <p><code>Failed to load API definition </code></p>
  <p><strong>Gradle file</strong>:</p>
  <pre><code>    repositories {
          jcenter()
      }
      dependencies {
          classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4+'
      }
  }
  
  plugins {
      id &quot;org.sonarqube&quot; version &quot;2.8&quot;
      id &quot;com.gorylenko.gradle-git-properties&quot; version &quot;2.2.2&quot;
  }
  
  apply plugin: 'java'
  apply plugin: 'idea'
  apply plugin: 'eclipse'
  apply plugin: 'com.jfrog.artifactory'
  apply plugin: 'maven-publish'
  apply plugin: &quot;jacoco&quot;
  
  sourceCompatibility = 1.8
  
  repositories {
      mavenCentral()
  
  }
  
  configurations {
    implementation.canBeResolved = true
  }
  
  jar {
      archiveVersion = &quot;${project.findProperty('APP_VERSION') ?: 'MANUAL_BUILD'}&quot;
      dependsOn configurations.runtimeClasspath
      duplicatesStrategy = DuplicatesStrategy.EXCLUDE
      from {
          (configurations.runtimeClasspath-configuration.implementation).collect {
              it.isDirectory() ? it : zipTree(it)
          }
      }
  
  }
  
  dependencies {
      implementation('org.springframework:spring-webmvc:5.3.8')
      implementation('org.apache.tomcat.embed:tomcat-embed-core:9.0.33')
      implementation('org.aspectj:aspectjrt:1.9.5')
   }
  </code></pre>
  <p>Please help us understand this issue.</p>