0

I am using Grails 2.3.8 I am using - org.yaml.snakeyaml.Yaml class. Didn't have any issues with GGTS workspace finding the package during auto complete in the source. But when running the application I get

java.lang.ClassNotFoundException:org.yaml.snakeyaml.Yaml

My assumption was this is part of the core Grails and the jars will be included automatically. Do I have to configure and add the jar or dependency in the BuildConfig.groovy ?

cfrick
  • 35,203
  • 6
  • 56
  • 68
user1786587
  • 1
  • 1
  • 1

1 Answers1

1

Grails 3 uses Yaml and includes it as a dependency but prior to 3.0 it didn't, so you need to configure it like any third-party dependency in BuildConfig.groovy, e.g.

dependencies {
   ...
   compile 'org.yaml:snakeyaml:1.14'
}
Burt Beckwith
  • 75,342
  • 5
  • 143
  • 156