import org.jetbrains.yaml.YAMLFileTypeLoader failes

Answered

I am new to gradle and need some help

 

I am trying to build a custom plugin , if I use intelliJ version "2017.1.6"  it works fine , but it doesn work with 2021.1 (version) . When using 2017.1.6 I use Java version 1.8 while with 2021.1 I tried using Java 11 and Java 16 ...but both gives the same error 

(error: cannot find symbol  org.jetbrains.yaml.YAMLFileTypeLoader )

 

I am attaching snippets from  build.gradle

plugins {
id 'org.jetbrains.intellij' version '0.7.2'
}
intellij {
version '2021.1.1'
plugins =['yaml']
downloadSources = false
updateSinceUntilBuild = false
}

sourceCompatibility = 11
targetCompatibility = 11

Plugins .xml already has this dependency 
<depends>org.jetbrains.plugins.yaml</depends>


0
5 comments
Avatar
Rochellealexa64

So the problem was solved by deleting the .gradle folder. Unfortunately none of the answers that I referred to described which .gradle folder I was supposed to delete.

What I did was deleted the .gradle folder inside the project structure. What you have to do is delete the .gradle folder located in

Windows:

C:/Users/<username>/.gradle.

MacOS:

~/Users/<username>/.gradle
0

The class org.jetbrains.yaml.YAMLFileTypeLoader simply was removed in some version after 2017.1.6. Nothing related to Gradle.

1

Thanks for input ...is there any other alternative class that can be used 

0

Please show your previous usage, what do you need it for?

0

Thanks Yann , I was able to resolve myself ...thanks for your help 

0

Please sign in to leave a comment.