package does not exists issue when removing my graddle version '2018.3' option

已回答

Hi All,

I have an IntelliJ plugin.

I saw that in my build.gradle i had following option

intellij {
version '2018.3'
type 'IC'
}

 

I tried removing the version to build on the same version i'm using : the latest EAP

but after doing so I got following errors 

 

 

of course if i put back the version number the plugin build without any issue.

 

These errors are strange as there was no deprecated warning 

when I look at the current master branch on github for ex 
https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataContext.java 

I don't see any information saying that the class is not existing or deprecated.

 

Should I do something specific to make my project build ?

 

for intormation this is my setup.

My plugin is still compiled with java 8 (but I planned to move it to java 11... but I didn't want to make all changes at once otherwise it would be impossible to know why error are happening)

IntelliJ IDEA 2019.2 EAP (Community Edition)
Build #IC-192.5438.14, built on June 26, 2019
Runtime version: 11.0.3+12-b304.2 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 4433M
Cores: 8
Registry: debugger.click.disable.breakpoints=true, compiler.automake.allow.when.app.running=true, git.explicit.commit.renames.prohibit.multiple.calls=false, actionSystem.force.alt.gr=true
Non-Bundled Plugins: BrowseWordAtCaret, GrepConsole, PsiViewer, Statistic, com.dubreuia, com.github.ArtsiomCh.JDCleanRead, com.github.shyykoserhiy.gfm, com.swissas.tala.swissas, com.github.shiraji.ipgwizard, izhangzhihao.rainbow.brackets, org.nik.presentation-assistant, org.sonarlint.idea

0

Looks like, during import a dependency on Intellij own libraries was not resolved properly.

Alian, when you remove `version` property from `intellij` section, can you still build project from command line (e.g., `gradle build`)?

0

Hi Nikita,

Thanks for your feedback. 
I really hope we can find a solution for this :)

I removed the 2019.2 version (well i commented it )

I saw that it was downloading some EAP file (maybe because I allowed EAP in the update part of IntelliJ ? )

this did not helped for the gradle build part. I still have 78 errors that I didn't had when setting version to 2019.1.3 (the issue happens only on 2019.2 ... 2018.x or 2019.1.x are building correctly .

If you need more details, please don't hesitate to ask :)

for information my plugin source code is located here : https://github.com/alain57/swissas-dev-tools


 

 

 

0

Since 2019.2 one needs to place an explicit dependency on 'java' plugin, as it was finally detached from the platform. Here is the patch:

diff --git a/build.gradle b/build.gradle
index 19c429f..cce56fd 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,11 +21,11 @@ dependencies {
// See https://github.com/JetBrains/gradle-intellij-plugin/
apply plugin: 'org.jetbrains.intellij'
intellij {
- version '2019.1.3'
+// version '2019.1.3'
downloadSources true
intellij.updateSinceUntilBuild false
- plugins 'com.intellij.properties:191.5849.33'//don't forget to change the number if plugin uses new intellij version
-
+
+ plugins 'java','properties'
}
patchPluginXml {
changeNotes """

1

WOW thanks a lot. That indeed fixed the issue I had and made the gradle file a lot more easier to read :)

 

a big big thank you

0

请先登录再写评论。