[GRADLE-2971] idea task fails with unable to find scala library Created: 04/Dec/13  Updated: 04/Feb/14  Resolved: 04/Feb/14

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.12-rc-1

Type: Bug
Reporter: Szczepan Faber Assignee: Szczepan Faber
Resolution: Fixed Votes: 0


 Description   

I have a very large multiproject build which has few dozens of scala submodules. Historically all scala submodules used the scalaTools configuration. To avoid deprecation issue, I've removed the scalaTools configuration dependencies from all submodules. This led to issue "Cannot infer Scala class path because no Scala library jar was found..." (failing ideaProject task): https://gist.github.com/szczepiq/bf047688a00c967e19ab

I found out that some of the scala submodules did not declare the scala library dependency. After adding missing dependency, the idea task works ok. I use configure on demand but I don't think it is related. Anyhow, it seems that the error could be improved otherwise it is hard to track down what project is missing the scala library.



 Comments   
Comment by Szczepan Faber [ 04/Feb/14 ]

Improved the error message.

Generated at Wed Jun 30 12:36:23 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.