Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find com.jetbrains.intellij.java:java-compiler-ant-tasks:183.5429.37 #369

Closed
ilwsm opened this issue Feb 28, 2019 · 15 comments
Closed
Assignees
Milestone

Comments

@ilwsm
Copy link

ilwsm commented Feb 28, 2019

intellij {
    version '183.5429.37'
    sandboxDirectory = "C:/Users/Andrey/.CLion2018.3"
    localPath 'F:/Run/Lprogr/JetBrains/CLion/'
    pluginName 'Helper'
    alternativeIdePath 'F:/Run/Lprogr/JetBrains/CLion/'
    downloadSources false
    type 'CL'
}
BUILD FAILED in 1s
4 actionable tasks: 1 executed, 3 up-to-date
Could not find com.jetbrains.intellij.java:java-compiler-ant-tasks:183.5429.37.
Searched in the following locations:
  - file:/F:/Run/Lprogr/JetBrains/CLion/com.jetbrains.intellij.java/java-compiler-ant-tasks/183.5429.37/ivy-183.5429.37.xml
  - file:/F:/Run/Lprogr/JetBrains/CLion/java-compiler-ant-tasks-183.5429.37-withKotlin.xml
  - file:/F:/Run/Lprogr/JetBrains/CLion/com.jetbrains.intellij.java/java-compiler-ant-tasks/183.5429.37/java-compiler-ant-tasks-183.5429.37.jar
  - file:/F:/Run/Lprogr/JetBrains/CLion/java-compiler-ant-tasks.jar
  - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/183.5429.37/java-compiler-ant-tasks-183.5429.37.pom
  - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/183.5429.37/java-compiler-ant-tasks-183.5429.37.jar
  - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/183.5429.37/java-compiler-ant-tasks-183.5429.37.pom
  - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/183.5429.37/java-compiler-ant-tasks-183.5429.37.jar
  - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/183.5429.37/java-compiler-ant-tasks-183.5429.37.pom
  - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/183.5429.37/java-compiler-ant-tasks-183.5429.37.jar
Required by:
    project :
10:11:39: Task execution finished 'verifyPlugin'.

F:/Run/Lprogr/JetBrains/CLion/ = CL-183.5429.37

How i can MANUALLY set java:java-compiler-ant-tasks?

@zolotov
Copy link
Member

zolotov commented Feb 28, 2019

Looks like a bug. Could you try to add an additional maven repo to your script, please? Does it help?

repositories {
    maven {
        url 'https://www.jetbrains.com/intellij-repository/releases'
    }
}

How i can MANUALLY set java:java-compiler-ant-tasks?

https://github.com/JetBrains/gradle-intellij-plugin#instrumenting-dsl

@zolotov zolotov self-assigned this Feb 28, 2019
@zolotov
Copy link
Member

zolotov commented Feb 28, 2019

@GoodAndrewSoft I didn't ask you to remove localPath. Have you tried to add a repository?

Same error!

Are you sure? If you added a repo it cannot be the same

@zolotov
Copy link
Member

zolotov commented Feb 28, 2019

Maybe this could help?

buildscript {
  repositories {
      maven {
          url 'https://www.jetbrains.com/intellij-repository/releases'
      }
  }
}

@zolotov
Copy link
Member

zolotov commented Feb 28, 2019

Нет, я не издеваюсь, я пытаюсь вам помочь хоть что-то собрать без необходимости выкачивать дистрибутив CLion или ожидания новой версии gradle-intellij-plugin.
Тогда попробуйте то, что я просил попробовать изначально: #369 (comment)

@zolotov
Copy link
Member

zolotov commented Feb 28, 2019

@GoodAndrewSoft it's enough to show the build.gradle with the suggested changes and the output.

Neither gist nor video contain these:

repositories {
      maven {
          url 'https://www.jetbrains.com/intellij-repository/releases'
      }
  }

Only this

buildscript {
  repositories {
      maven {
          url 'https://www.jetbrains.com/intellij-repository/releases'
      }
  }
}

And please don't be rude, I'm actually trying to find a workaround for you but instead of applying suggested changes you demanding some actions from me using not really acceptable tone.

If you don't need a workaround, I'm completely fine with this, you can wait for the next version where this bug will be likely fixed. Still, it's not the reason to talk like that.

@zolotov
Copy link
Member

zolotov commented Feb 28, 2019

repositories block must be after plugins block. It's a gradle restriction and the error message is quite descriptive

@ilwsm
Copy link
Author

ilwsm commented Feb 28, 2019

I thinked, this

repositories {
      maven {
          url 'https://www.jetbrains.com/intellij-repository/releases'
      }
  }

and this

buildscript {
  repositories {
      maven {
          url 'https://www.jetbrains.com/intellij-repository/releases'
      }
  }
}

the same.
Now its worked. Thanks.!

@zolotov zolotov added this to the 0.4.4 milestone Feb 28, 2019
@zolotov zolotov closed this as completed Feb 28, 2019
valb3r added a commit to valb3r/flowable-bpmn-intellij-plugin that referenced this issue Jan 30, 2021
valb3r added a commit to valb3r/flowable-bpmn-intellij-plugin that referenced this issue Feb 10, 2021
valb3r added a commit to valb3r/flowable-bpmn-intellij-plugin that referenced this issue Feb 10, 2021
valb3r added a commit to valb3r/flowable-bpmn-intellij-plugin that referenced this issue Feb 21, 2021
valb3r added a commit to valb3r/flowable-bpmn-intellij-plugin that referenced this issue Feb 21, 2021
valb3r added a commit to valb3r/flowable-bpmn-intellij-plugin that referenced this issue Feb 21, 2021
@AlexeyKorshun
Copy link

Hi, I try to use your plugin, but I have an issue Could not find com.jetbrains.intellij.java:java-compiler-ant-tasks:203.7717.56.2031.7583922. . Before upgrade my IDEA to new version, it worked fine. can you help, what can be wrong?

@ant-druha
Copy link
Member

Same issue reported https://stackoverflow.com/q/68655763/2000323 cc @hsz

@zolotov
Copy link
Member

zolotov commented Aug 5, 2021

@AlexeyKorshun as you use local android studio (not IDEA) as an SDK, you have to specify a particular compiler version that should be used for instrumenting.

There is no compiler with 203.7717.56.2031.7583922 version. All available versions are listed here: https://www.jetbrains.com/intellij-repository/releases. In your case, I think 203.7717.56 would be just fine.

So the configuration should look like this:

instrumentCode {
  compilerVersion = "203.7707.56"
}

@AlexeyKorshun
Copy link

AlexeyKorshun commented Aug 5, 2021

@zolotov why do you think I use AS as an SDK?

but ok, first of all, thx for plugin :)

and current version is 0.7.2 in project. I build plugin in IDEA for IC type, as I know it is IDEA. In this version, we don't have compilerVersion property

@zolotov
Copy link
Member

zolotov commented Aug 5, 2021

@zolotov why do you think I use AS as an SDK?

I suggest that from the version: 203.7717.56.2031.7583922. It's impossible version for IDEA IC.

If it's not, please share the entire build.gradle

@AlexeyKorshun
Copy link

my sorry, thx for find a problem. I change my version. It was a true

@CoXier
Copy link
Contributor

CoXier commented Apr 11, 2022

@AlexeyKorshun as you use local android studio (not IDEA) as an SDK, you have to specify a particular compiler version that should be used for instrumenting.

There is no compiler with 203.7717.56.2031.7583922 version. All available versions are listed here: https://www.jetbrains.com/intellij-repository/releases. In your case, I think 203.7717.56 would be just fine.

So the configuration should look like this:

instrumentCode {
  compilerVersion = "203.7707.56"
}

Hi, why not fix this bug in plugin?

@hsz
Copy link
Member

hsz commented Apr 11, 2022

@CoXier This has been already addressed with a2f3837

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants