question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle 7: testCompile configuration not found

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

6reactions
siordachecommented, Apr 15, 2021

I plan to make a new release of the gradle-modules-plugin in the next few days, which should fix this issue.

3reactions
siordachecommented, Apr 26, 2021

Fixed in 1.8.1.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found