{"id":1925,"date":"2013-09-07T22:43:10","date_gmt":"2013-09-07T22:43:10","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=1925"},"modified":"2013-09-07T22:43:10","modified_gmt":"2013-09-07T22:43:10","slug":"fixing-gradle-error-cannot-infer-scala-class-path-because-no-scala-library-jar-was-found-on-class-path-configuration-compile","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-gradle-error-cannot-infer-scala-class-path-because-no-scala-library-jar-was-found-on-class-path-configuration-compile\/","title":{"rendered":"Fixing Gradle Error: Cannot infer Scala class path because no Scala library Jar was found on class path: configuration &#8216;:compile&#8217;"},"content":{"rendered":"<p>When you get this error:<\/p>\n<pre>\nCannot infer Scala class path because no Scala library Jar was found on class path: configuration ':compile'\n<\/pre>\n<p>This indicates that you need to tell gradle which version of Scala you&#8217;re interested in, so that it can download it.<\/p>\n<p>To fix this, add the following to build.gradle:<\/p>\n<pre>\ndependencies {\n    compile 'org.scala-lang:scala-library:2.10.1'\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When you get this error: Cannot infer Scala class path because no Scala library Jar was found on class path: configuration &#8216;:compile&#8217; This indicates that you need to tell gradle which version of Scala you&#8217;re interested in, so that it can download it. To fix this, add the following to build.gradle: dependencies { compile &#8216;org.scala-lang:scala-library:2.10.1&#8217; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.garysieling.com\/blog\/fixing-gradle-error-cannot-infer-scala-class-path-because-no-scala-library-jar-was-found-on-class-path-configuration-compile\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing Gradle Error: Cannot infer Scala class path because no Scala library Jar was found on class path: configuration &#8216;:compile&#8217;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/1925"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=1925"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/1925\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=1925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=1925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=1925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}