{"id":1923,"date":"2013-09-07T22:40:06","date_gmt":"2013-09-07T22:40:06","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=1923"},"modified":"2013-09-07T22:40:06","modified_gmt":"2013-09-07T22:40:06","slug":"fixing-gradle-error-cannot-infer-scala-class-path-because-no-repository-is-declared-for-the-project","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-gradle-error-cannot-infer-scala-class-path-because-no-repository-is-declared-for-the-project\/","title":{"rendered":"Fixing Gradle error: Cannot infer Scala class path because no repository is declared for the project."},"content":{"rendered":"<p>When you get this error:<\/p>\n<pre>\nCannot infer Scala class path because no repository is declared for the project.\n<\/pre>\n<p>This means the maven repository is not set up &#8211; if you add the following it will work. This allows gradle to resolve dependencies on it&#8217;s own.<\/p>\n<pre>\nrepositories {\n    mavenCentral()\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When you get this error: Cannot infer Scala class path because no repository is declared for the project. This means the maven repository is not set up &#8211; if you add the following it will work. This allows gradle to resolve dependencies on it&#8217;s own. repositories { mavenCentral() }<\/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":[258,480],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/1923"}],"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=1923"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/1923\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}