typelead/intellij-eta

Problems while building plugin

evis opened this issue · 2 comments

evis commented

Hi all, I try to build and run plugin, but can't succeed yet.

Firstly, I just cloned repo and executed ./gradlew assemble. It failed with such error:

$ ./gradlew assemble

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'intellij-eta'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not find com.typelead:gradle-eta:0.0.1-SNAPSHOT-fd00812.
     Searched in the following locations:
         file:/home/vere10/.m2/repository/com/typelead/gradle-eta/0.0.1-SNAPSHOT-fd00812/gradle-eta-0.0.1-SNAPSHOT-fd00812.pom
         file:/home/vere10/.m2/repository/com/typelead/gradle-eta/0.0.1-SNAPSHOT-fd00812/gradle-eta-0.0.1-SNAPSHOT-fd00812.jar
         https://plugins.gradle.org/m2/com/typelead/gradle-eta/0.0.1-SNAPSHOT-fd00812/gradle-eta-0.0.1-SNAPSHOT-fd00812.pom
         https://plugins.gradle.org/m2/com/typelead/gradle-eta/0.0.1-SNAPSHOT-fd00812/gradle-eta-0.0.1-SNAPSHOT-fd00812.jar
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.091 secs

I looked at plugins.gradle.org and noticed, that there's actually no such dependency. I found another dependency in repo and tried to fix it like this:

$ git diff
diff --git a/build.gradle b/build.gradle
index c84d00d..cea08a0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,7 +9,7 @@ buildscript {
     mavenLocal()
 
     dependencies {
-      classpath 'com.typelead:gradle-eta:0.0.1-SNAPSHOT-fd00812'
+      classpath 'com.typelead.eta:com.typelead.eta.gradle.plugin:0.5.4'
     }
   }
 }

I tried to run ./gradlew assemble once again, but no luck:

$ ./gradlew assemble
Download https://plugins.gradle.org/m2/com/typelead/eta/com.typelead.eta.gradle.plugin/0.5.4/com.typelead.eta.gradle.plugin-0.5.4.pom
Download https://plugins.gradle.org/m2/gradle/plugin/com/typelead/gradle-eta/0.5.4/gradle-eta-0.5.4.pom
Download https://plugins.gradle.org/m2/gradle/plugin/org/jetbrains/intellij/plugins/gradle-intellij-plugin/0.2.17/gradle-intellij-plugin-0.2.17.jar
Download https://plugins.gradle.org/m2/gradle/plugin/com/typelead/gradle-eta/0.5.4/gradle-eta-0.5.4.jar
Download https://plugins.gradle.org/m2/org/jetbrains/intellij/plugin-repository-rest-client/0.3.21/plugin-repository-rest-client-0.3.21.jar
Download https://plugins.gradle.org/m2/org/jetbrains/intellij/plugins/intellij-plugin-structure/1.37/intellij-plugin-structure-1.37.jar
Download https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-stdlib/1.0.0/kotlin-stdlib-1.0.0.jar
Download https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-runtime/1.0.0/kotlin-runtime-1.0.0.jar
Download https://www.jetbrains.com/intellij-repository/snapshots/com/jetbrains/intellij/idea/ideaIC/LATEST-EAP-SNAPSHOT/ideaIC-LATEST-EAP-SNAPSHOT.pom
Download https://www.jetbrains.com/intellij-repository/snapshots/com/jetbrains/intellij/idea/ideaIC/LATEST-EAP-SNAPSHOT/ideaIC-LATEST-EAP-SNAPSHOT.zip
Download https://www.jetbrains.com/intellij-repository/snapshots/com/jetbrains/intellij/idea/ideaIC/LATEST-EAP-SNAPSHOT/ideaIC-LATEST-EAP-SNAPSHOT-sources.jar

FAILURE: Build failed with an exception.

* Where:
Build file '/home/vere10/dev/oss/intellij-eta/build.gradle' line: 1

* What went wrong:
Could not compile build file '/home/vere10/dev/oss/intellij-eta/build.gradle'.
> startup failed:
  build file '/home/vere10/dev/oss/intellij-eta/build.gradle': 1: unable to resolve class com.typelead.gradle.utils.EtaRuntimeUtils
   @ line 1, column 1.
     import com.typelead.gradle.utils.EtaRuntimeUtils
     ^
  
  1 error


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2 mins 58.732 secs

I'm not sure, where to find this class.

Could someone help me in building plugin, please?

@carymrobbins Is in the process of migrating this project to work with the latest released Gradle plugin. The current version relies on older versions of Eta/Etlas and gradle-eta which you'd have to build from source. If you still want to build the plugin right now, you can build the fd00812 commit of gradle-eta from source.

@evis This should be resolved in the latest master; please reopen if you encounter any issues.