Gradle 7: testCompile configuration not found
See original GitHub issueHi,
just upgraded to Gradle 7.0 and I got the error:
https://github.com/JabRef/jabref/runs/2326342995?check_suite_focus=true
Execution failed for task ‘:compileTestJava’. Configuration with name ‘testCompile’ not found.
Caused by: org.gradle.api.artifacts.UnknownConfigurationException: Configuration with name 'testCompile' not found.
at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.createNotFoundException(DefaultConfigurationContainer.java:165)
at org.gradle.api.internal.DefaultNamedDomainObjectCollection.getByName(DefaultNamedDomainObjectCollection.java:333)
at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.getByName(DefaultConfigurationContainer.java:155)
at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.getByName(DefaultConfigurationContainer.java:64)
at org.javamodularity.moduleplugin.TestEngine.selectMultiple(TestEngine.java:45)
at org.javamodularity.moduleplugin.tasks.CompileTestTask.buildCompilerArgs(CompileTestTask.java:61)
at org.javamodularity.moduleplugin.tasks.CompileTestTask$1.execute(CompileTestTask.java:39)
at org.javamodularity.moduleplugin.tasks.CompileTestTask$1.execute(CompileTestTask.java:36)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:749)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:722)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Gradle cannot find testCompile despite the fact I added java ...
In my understanding after I apply java plugin to the dependencies the configuration should be there but somehow it does not work. What...
Read more >Gradle 7.0 Configuration with name 'testCompile' not found.
I upgraded my javafx application from java 13 to openjdk 16 and gradle 6.1.1 to gradle 7.0 As testCompile configuration is no more...
Read more >Different Ways to Fix "Configuration with name 'default' not ...
"Error: Configuration with name 'default' not found". There can be more reasons to ... When you try to build the project, Gradle sync...
Read more >Could not find method testCompile() for arguments [{group ...
compile and testCompile configurations are removed in Gradle 7+. You can use implementation and testImplementation instead. 13. Please sign in ...
Read more >Gradle Dependencies and Dependency Configurations
6.2.2.1 compile; 6.2.2.2 runtime; 6.2.2.3 testCompile; 6.2.2.4 testRuntime. 6.2.3 Default Configurations added by the Java Library Plugin.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I plan to make a new release of the gradle-modules-plugin in the next few days, which should fix this issue.
Fixed in 1.8.1.