I followed the instructions in the https://github.com/gradle/gradle/blob/master/README.md page, and tried several times already to have something working in the IDE (IntelliJ 12.1.6 on OSX 10.8.5, also tried it before on a Windows box) but it has always failed.
What are the actual steps to be able to build gradle from the IDE and run tests from the IDE?
Here is the output when simply launching ‘gradlew idea’, opening the generated IntelliJ project, and clicking Build - Make Project:
Information:Using javac 1.7.0_40 to compile java sources
Information:java: Errors occurred while compiling module ‘internalIntegTesting’
Information:Compilation completed with 13 errors and 6 warnings in 5 sec
Information:13 errors
Information:6 warnings
/Users/jb/projects/gradle/subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java
Error:Error:line (39)java: cannot find symbol
symbol:
class Matchers
location: package org.gradle.util
Error:Error:line (603)java: cannot find symbol
symbol: method matchesRegexp(java.lang.String)
Error:Error:line (618)java: cannot find symbol
symbol: method matchesRegexp(java.lang.String)
Error:Error:line (619)java: cannot find symbol
symbol: method matchesRegexp(java.lang.String)
/Users/jb/projects/gradle/subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailure.java
Error:Error:line (24)java: cannot find symbol
symbol:
class Matchers
location: package org.gradle.util
Error:Error:line (24)java: static import only from classes and interfaces
Error:Error:line (118)java: cannot find symbol
symbol:
method isEmpty()
location: class org.gradle.integtests.fixtures.executer.OutputScrapingExecutionFailure
/Users/jb/projects/gradle/subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java
Warning:Warning:line (20)java: org.gradle.GradleLauncher in org.gradle has been deprecated
Error:Error:line (62)java: cannot find symbol
symbol:
class Matchers
location: package org.gradle.util
Error:Error:line (62)java: static import only from classes and interfaces
Error:Error:line (63)java: cannot find symbol
symbol:
class Matchers
location: package org.gradle.util
Error:Error:line (63)java: static import only from classes and interfaces
Warning:Warning:line (167)java: org.gradle.GradleLauncher in org.gradle has been deprecated
Warning:Warning:line (167)java: getFactory() in org.gradle.GradleLauncher has been deprecated
Warning:Warning:line (171)java: org.gradle.GradleLauncher in org.gradle has been deprecated
Error:Error:line (393)java: cannot find symbol
symbol:
method hasMessage(org.hamcrest.Matcher<java.lang.String>)
location: class org.gradle.integtests.fixtures.executer.InProcessGradleExecuter.InProcessExecutionFailure
Error:Error:line (414)java: cannot find symbol
symbol:
method isEmpty()
location: class org.gradle.integtests.fixtures.executer.InProcessGradleExecuter.InProcessExecutionFailure
/Users/jb/projects/gradle/subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java
Warning:Warning:java: Some input files use unchecked or unsafe operations.
Warning:Warning:java: Recompile with -Xlint:unchecked for details.
Opening the project structure also shows an error signalling circular dependencies between modules.