title: Kotlin 1.5.10, Gradle 7.0.2_2 - Could not find method testCompile() group=org.junit.jupiter, name=junit-jupiter-api, version=5.7.2
body: <p>After following: <a href="https://youtrack.jetbrains.com/issue/KT-46090" rel="nofollow noreferrer">https://youtrack.jetbrains.com/issue/KT-46090</a></p>
  <p>I'm still issues with:</p>
  <blockquote>
  <blockquote>
  <p>Configure project : POM relocation to an other version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to
  xml-apis:xml-apis:1.0.b2. Please update your dependency to directly
  use the correct version 'xml-apis:xml-apis:1.0.b2'. Resolution will
  only pick dependencies of the relocated element.  Artifacts and other
  metadata will be ignored.</p>
  </blockquote>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li><p>Where: Build file '/Users/NOTiFY/IdeaProjects/GoStopHandle/build.gradle' line: 53</p>
  </li>
  <li><p>What went wrong: A problem occurred evaluating root project 'GoStopHandle'.</p>
  </li>
  </ul>
  <blockquote>
  <p>Could not find method testCompile() for arguments [{group=org.junit.jupiter, name=junit-jupiter-api, version=5.7.1}] on
  object of type
  org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</p>
  </blockquote>
  </blockquote>
  <p>Gradle:</p>
  <pre><code>plugins {
      id &quot;war&quot;
      id &quot;ear&quot;
      id &quot;idea&quot;
  
  //    id &quot;org.jetbrains.kotlin.jvm&quot; version &quot;1.4.32&quot;
  //    id &quot;org.jetbrains.kotlin.plugin.jpa&quot; version &quot;1.4.32&quot;
      id &quot;org.jetbrains.kotlin.jvm&quot; version &quot;1.5.0&quot;
      id &quot;org.jetbrains.kotlin.plugin.jpa&quot; version &quot;1.5.0&quot;
  
      // Static Code Checkers x 4
      id &quot;checkstyle&quot;
  
      id &quot;com.github.spotbugs&quot; version &quot;4.7.1&quot;
  
      id &quot;pmd&quot;
      id &quot;org.sonarqube&quot; version &quot;3.1.1&quot;
  
      id &quot;org.wildfly.build.provision&quot; version &quot;0.0.11&quot;
  }
  
  sourceCompatibility = 1.13
  
  repositories {
      mavenLocal()
      mavenCentral()
      //noinspection MultipleRepositoryUrls
      maven {
          name &quot;jboss-nexus&quot;
          url &quot;http://repository.jboss.org/nexus/content/groups/public/&quot;
          url &quot;https://repository.jboss.org/nexus/content/groups/public-jboss&quot;
          url &quot;https://repository.jboss.org/nexus/content/repositories&quot;
          url &quot;https://repository.jboss.org/nexus/content/repositories/thirdparty-releases&quot;
          //url &quot;http://repository.primefaces.org&quot;
          url &quot;https://repository.primefaces.org&quot;
      }
  
      jcenter()
  
      flatDir {
          dirs &quot;lib&quot;
      }
  }
  
  checkstyle {
      //toolVersion &quot;8.42&quot;
      toolVersion &quot;8.41.1&quot;
      configFile = file(&quot;config/checkstyle/checkstyle.xml&quot;)
  }
  
  dependencies {
      // JUnit 5 (Jupiter) 5.7.1 Feb, 2021
      testCompile group: &quot;org.junit.jupiter&quot;, name: &quot;junit-jupiter-api&quot;, version: &quot;5.7.1&quot;
      testCompile group: &quot;org.junit.jupiter&quot;, name: &quot;junit-jupiter-engine&quot;, version: &quot;5.7.1&quot;
      testCompile group: &quot;org.junit.vintage&quot;, name: &quot;junit-vintage-engine&quot;, version: &quot;5.7.1&quot;
      testCompile group: &quot;org.junit.jupiter&quot;, name: &quot;junit-jupiter-params&quot;, version: &quot;5.7.1&quot;
  
      // org.slf4j 25/08/2020
      testCompile group: &quot;org.slf4j&quot;, name: &quot;slf4j-nop&quot;, version: &quot;1.7.30&quot;
      testCompile group: &quot;org.slf4j&quot;, name: &quot;slf4j-simple&quot;, version: &quot;1.7.30&quot;
      testCompile group: &quot;org.slf4j&quot;, name: &quot;slf4j-jdk14&quot;, version: &quot;1.7.30&quot;
  
      // JBoss Weld 3.1.5.Final CDI 2.0
      //compile group: &quot;org.jboss.weld.se&quot;, name: &quot;weld-se-core&quot;, version: &quot;4.0.0.Final&quot;
      //compile group: &quot;org.jboss.weld.se&quot;, name: &quot;weld-se-core&quot;, version: &quot;3.1.6.Final&quot;
      compile group: &quot;org.jboss.weld.module&quot;, name: &quot;weld-web&quot;, version: &quot;3.1.5.Final&quot;
  
      compile group: &quot;javax.ejb&quot;, name: &quot;javax.ejb-api&quot;, version: &quot;3.2.2&quot;
      compile group: &quot;org.jboss.spec.javax.ejb&quot;, name: &quot;jboss-ejb-api_3.2_spec&quot;, version: &quot;2.0.0.Final&quot;
  
      compile group: &quot;org.eclipse.persistence&quot;, name: &quot;javax.persistence&quot;, version: &quot;2.2.1&quot;
      compile group: &quot;javax.inject&quot;, name: &quot;javax.inject&quot;, version: &quot;1&quot;
  
      compile group: &quot;javax.faces&quot;, name: &quot;javax.faces-api&quot;, version: &quot;2.3&quot;
      compile group: &quot;javax.enterprise&quot;, name: &quot;cdi-api&quot;, version: &quot;2.0.SP1&quot;
  
      // 09/12/20 - Fix pom -&gt; Gradle for
      compile group: &quot;com.sun.xml.bind&quot;, name: &quot;jaxb-impl&quot;, version: &quot;3.0.0&quot;
      compile group: &quot;javax.xml.bind&quot;, name: &quot;jaxb-api&quot;, version: &quot;2.3.1&quot;
  
      // 3 x Hibernate Feb, 2021
      compile group: &quot;org.hibernate&quot;, name: &quot;hibernate-core&quot;, version: &quot;5.4.31.Final&quot;
      compile group: &quot;org.hibernate&quot;, name: &quot;hibernate-entitymanager&quot;, version: &quot;5.4.31.Final&quot;
      compile group: &quot;org.hibernate&quot;, name: &quot;hibernate-commons-annotations&quot;, version: &quot;3.2.0.Final&quot;
  
      compile group: &quot;org.hibernate&quot;, name: &quot;hibernate-search-orm&quot;, version: &quot;5.11.8.Final&quot;
      compile group: &quot;org.hibernate.ogm&quot;, name: &quot;hibernate-ogm-mongodb&quot;, version: &quot;5.4.1.Final&quot;
      // 10/10/2020 x 3
      compile group: &quot;org.jboss.resteasy&quot;, name: &quot;resteasy-jaxrs&quot;, version: &quot;3.14.0.Final&quot;
  
      compile group: &quot;org.apache.httpcomponents&quot;, name: &quot;httpclient&quot;, version: &quot;4.5.13&quot;
      compile group: &quot;org.apache.httpcomponents&quot;, name: &quot;httpcore&quot;, version: &quot;4.4.13&quot;
  
      // Omnifaces + WEB-INF 2021-01-24 16:49
      compile group: &quot;org.omnifaces&quot;, name: &quot;omnifaces&quot;, version: &quot;3.11&quot;
  
  //    compile group: &quot;org.primefaces&quot;, name: &quot;primefaces&quot;, version: &quot;10.0.1&quot;
      implementation group: 'org.primefaces', name: 'primefaces', version: '10.0.1'
  
      compile group: &quot;org.primefaces.themes&quot;, name: &quot;bootstrap&quot;, version: &quot;1.0.10&quot;
  
      // mongodb - 6 February 2021
      compile group: &quot;org.mongodb&quot;, name: &quot;mongo-java-driver&quot;, version: &quot;3.12.8&quot;
  
      compile group: &quot;com.google.code.gson&quot;, name: &quot;gson&quot;, version: &quot;2.8.6&quot;
      compile group: &quot;javax.ws.rs&quot;, name: &quot;javax.ws.rs-api&quot;, version: &quot;2.1.1&quot;
      compile group: &quot;org.slf4j&quot;, name: &quot;slf4j-api&quot;, version: &quot;1.7.30&quot;
  
      // Kotlin - 21-05-05
  //    compile group: &quot;org.jetbrains.kotlin&quot;, name: &quot;kotlin-stdlib&quot;, version: &quot;1.4.32&quot;
      compile group: &quot;org.jetbrains.kotlin&quot;, name: &quot;kotlin-stdlib&quot;, version: &quot;1.5.0&quot;
  
      // JSoup Java HTML Parser - 01/03/2020
      compile group: &quot;org.jsoup&quot;, name: &quot;jsoup&quot;, version: &quot;1.13.1&quot;
  
      // JUnit Jupiter
      //compile group: &quot;org.junit.platform&quot;, name: &quot;junit-platform-commons&quot;, version: &quot;1.3.2&quot;
      //compile group: &quot;org.opentest4j&quot;, name: &quot;opentest4j&quot;, version: &quot;1.1.1&quot;
  
      // https://mvnrepository.com/artifact/org.picketlink/picketlink-idm-parent
      //compile group: &quot;org.picketlink&quot;, name: &quot;picketlink-idm-parent&quot;, version: &quot;2.5.5.SP12&quot;, ext: &quot;pom&quot;
  
      providedCompile &quot;javax.ejb:javax.ejb-api:3.2.2&quot;
      //providedCompile &quot;org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec:1.0.1.Final&quot;
      providedCompile group: &quot;org.jboss.spec.javax.ejb&quot;, name: &quot;jboss-ejb-api_3.2_spec&quot;, version: &quot;2.0.0.Final&quot;
      providedCompile &quot;org.eclipse.persistence:javax.persistence:2.2.0&quot;
      providedCompile &quot;javax.inject:javax.inject:1&quot;
  
      providedCompile &quot;javax.faces:javax.faces-api:2.3&quot;
  
      providedCompile group: &quot;javax.enterprise&quot;, name: &quot;cdi-api&quot;, version: &quot;2.0.SP1&quot;
      providedCompile group: &quot;javax.servlet&quot;, name: &quot;javax.servlet-api&quot;, version: &quot;4.0.1&quot;
  
      // Hibernate - Feb, 2021
      providedCompile &quot;org.hibernate:hibernate-core:5.4.28.Final&quot;
      providedCompile &quot;org.hibernate:hibernate-entitymanager:5.4.28.Final&quot;
  
      // org.hibernate:hibernate - Mar, 2010
      providedCompile &quot;org.hibernate:hibernate-commons-annotations:3.2.0.Final&quot;
      providedCompile &quot;org.hibernate:hibernate-search-orm:5.11.8.Final&quot;
  
      providedCompile &quot;org.jboss.resteasy:resteasy-jaxrs:3.14.0.Final&quot;
  
      providedCompile &quot;com.google.code.gson:gson:2.8.6&quot;
      providedCompile &quot;org.slf4j:slf4j-api:1.7.30&quot;
      providedCompile &quot;javax.ws.rs:javax.ws.rs-api:2.1.1&quot;
  
      spotbugsPlugins &quot;com.h3xstream.findsecbugs:findsecbugs-plugin:1.11.0&quot;
  }
  
  checkstyleMain {
      source = [&quot;src/main/java&quot;]
  }
  
  spotbugs {
      ignoreFailures = true
      toolVersion = &quot;4.2.3&quot;
      reportsDir = file(&quot;reports/spotbugs&quot;)
      effort = &quot;max&quot;
      reportLevel = &quot;high&quot;
  
      // ignoreFailures = false
      // showProgress = true
      // effort = &quot;default&quot;
      // reportLevel = &quot;default&quot;
      // visitors = [ &quot;FindSqlInjection&quot;, &quot;SwitchFallthrough&quot; ]
      // omitVisitors = [ &quot;FindNonShortCircuit&quot; ]
      // reportsDir = file(&quot;$buildDir/ƒprime&quot;)
      // includeFilter = file(&quot;include.xml&quot;)
      // excludeFilter = file(&quot;exclude.xml&quot;)
      // onlyAnalyze = [ &quot;com.foobar.MyClass&quot;, &quot;com.foobar.mypkg.*&quot; ]
      // maxHeapSize = &quot;1g&quot;
      // extraArgs = [ &quot;-nested:false&quot; ]
      // jvmArgs = [ &quot;-Duser.language=ja&quot; ]
  }
  
  pmd {
      ignoreFailures = true
      reportsDir = file(&quot;reports/pmd&quot;)
      ruleSets = [
              &quot;java-basic&quot;,
              &quot;java-braces&quot;,
              &quot;java-clone&quot;,
              &quot;java-codesize&quot;,
              &quot;java-comments&quot;,
              &quot;java-controversial&quot;,
              &quot;java-coupling&quot;,
              &quot;java-design&quot;,
              &quot;java-empty&quot;,
              &quot;java-finalizers&quot;,
              &quot;java-imports&quot;,
              &quot;java-optimizations&quot;,
              &quot;java-strictexception&quot;,
              &quot;java-strings&quot;,
              &quot;java-typeresolution&quot;,
              &quot;java-unnecessary&quot;,
              &quot;java-unusedcode&quot;
      ]
  }
  
  tasks.withType(Pmd) {
      reports {
          xml.enabled = true
          html.enabled = true
      }
  }
  
  tasks.withType(Checkstyle) {
      reports {
          html.destination rootProject.file(&quot;reports/checkstyle/checkstyle.html&quot;)
      }
  }
  
  task deleteFiles(type: Delete) {
      project.logger.lifecycle(&quot;&gt;&gt;&gt;&gt;&gt; 1 deleteFiles&quot;)
  
      delete fileTree(&quot;./build/libs&quot;) {
          include &quot;**/GoStopHandle*.?ar&quot;
      }
  
      delete fileTree(&quot;./src/main/application&quot;) {
          include &quot;**/GoStopHandle*.war&quot;
          include &quot;**/GoStopHandle*.jar&quot;
          include &quot;**/GoStopHandle*.ear&quot;
      }
  }
  
  task GoStopHandleWAR(type: War) {
      project.logger.lifecycle(&quot;&gt;&gt;&gt;&gt;&gt; 2 GoStopHandleWAR&quot;)
  
      dependsOn deleteFiles
  
      archiveName &quot;GoStopHandleWAR.war&quot;
      //archiveFileName &quot;GoStopHandleWAR.war&quot;
  
      //webInf {
      //    from &quot;WEB-INF&quot;
      //}
  
      rootSpec.exclude(&quot;**/dto/*&quot;)
      rootSpec.exclude(&quot;**/ean/*&quot;)
      rootSpec.exclude(&quot;**/ejb/*&quot;)
      rootSpec.exclude(&quot;**/entity/*&quot;)
      rootSpec.exclude(&quot;**/filter/*&quot;)
      rootSpec.exclude(&quot;**/gson/*&quot;)
      //rootSpec.exclude(&quot;**/omnifaces/*&quot;)
  
      rootSpec.exclude(&quot;**/controller/*&quot;)
  
      // Exclude push PushEvent.class
      rootSpec.exclude(&quot;**/push/PushEvent.class&quot;)
      rootSpec.exclude(&quot;**/push/PushEvent.class&quot;)
  
      rootSpec.exclude(&quot;**/webservices/*&quot;)
  
      rootSpec.exclude(&quot;**/GoStopHandle*.jar&quot;)
      rootSpec.exclude(&quot;**/GoStopHandle*.war&quot;)
  }
  
  task GoStopHandleJAR(type: Jar) {
      project.logger.lifecycle(&quot;&gt;&gt;&gt;&gt;&gt; 3 GoStopHandleJAR&quot;)
  
      dependsOn GoStopHandleWAR
  
      archiveName &quot;GoStopHandleJAR.jar&quot;
  //    archiveFileName &quot;GoStopHandleJAR.jar&quot;
  
      from(&quot;./src/main/java&quot;) {
          include &quot;META-INF/**&quot;
      }
  
      // Exclude
      rootSpec.exclude(&quot;**/jsf/SliderViewBean.class&quot;)
      rootSpec.exclude(&quot;**/push/PushBean.class&quot;)
  
      from(&quot;./build/classes/java/main&quot;) {
          include &quot;*/**&quot;
      }
  
      // Kotlin
      from(&quot;./build/classes/kotlin/main&quot;) {
          include &quot;*/**&quot;
      }
  }
  
  task copyGoStopHandleWAR(type: Copy) {
      project.logger.lifecycle(&quot;&gt;&gt;&gt;&gt;&gt; 4 copyGoStopHandleWAR&quot;)
  
      dependsOn GoStopHandleJAR
  
      from file(&quot;./build/libs/GoStopHandleWAR.war&quot;)
      into file(&quot;./src/main/application&quot;)
  }
  
  task copyGoStopHandleJAR(type: Copy) {
      project.logger.lifecycle(&quot;&gt;&gt;&gt;&gt;&gt; 5 copyGoStopHandleWAR&quot;)
  
      dependsOn copyGoStopHandleWAR
  
      from file(&quot;./build/libs/GoStopHandleJAR.jar&quot;)
      into file(&quot;./src/main/application&quot;)
  }
  
  task GoStopHandleEAR(type: Ear) {
      project.logger.lifecycle(&quot;&gt;&gt;&gt;&gt;&gt; 6 GoStopHandleEAR&quot;)
  
      apply plugin: &quot;ear&quot;
  
      dependsOn copyGoStopHandleJAR
  
      archiveName &quot;GoStopHandle.ear&quot;
  //    archiveFileName &quot;GoStopHandle.ear&quot;
  
      manifest {
          from(&quot;./src/main/resources/META-INF/MANIFEST.MF&quot;)
      }
  
      exclude &quot;**/*.class&quot;
      exclude &quot;**/asm-Java.jar&quot;
      exclude &quot;**/jboss-deployment-structure.xml&quot;
  
      exclude(&quot;**/beans.xml&quot;)
  
      dependencies {
          earlib group: &quot;com.google.code.gson&quot;, name: &quot;gson&quot;, version: &quot;2.8.6&quot;, ext: &quot;jar&quot;
          earlib group: &quot;org.apache.httpcomponents&quot;, name: &quot;httpclient&quot;, version: &quot;4.5.13&quot;, ext: &quot;jar&quot;
          earlib group: &quot;org.apache.httpcomponents&quot;, name: &quot;httpcore&quot;, version: &quot;4.4.13&quot;, ext: &quot;jar&quot;
  
  //        earlib group: &quot;org.jetbrains.kotlin&quot;, name: &quot;kotlin-stdlib&quot;, version: &quot;1.4.32&quot;, ext: &quot;jar&quot;
          earlib group: &quot;org.jetbrains.kotlin&quot;, name: &quot;kotlin-stdlib&quot;, version: &quot;1.5.0&quot;, ext: &quot;jar&quot;
      }
  }
  </code></pre>
  <p>What is the progress or issues with Kotlin 1.5.0 &amp; JUnit 5.7.1?</p>
  <p>TIA.</p>