sheehan / grails-console

A web-based Groovy console for interactive runtime application management and debugging
Apache License 2.0
78 stars 41 forks source link

Unable to obtain dependency #34

Closed syeds-git closed 9 years ago

syeds-git commented 9 years ago

I am trying to include this plugin but so far I am unable to do so. I am getting following exception:

Resolve error obtaining dependencies: Could not find artifact org.grails.plugins:grails-console:jar:1.5.5 in grailsCentral (http://repo.grails.org/grails/plugins) 

I have following code in my BuildConfig.groovy

    dependencies {
    compile(
            'org.grails.plugins:grails-console:1.5.5'
              ...)

I have also tried using compile ":console:1.5.5"

and following repos

repositories {
    inherits true
    grailsPlugins()
    grailsHome()
    mavenLocal()
    grailsCentral()
    mavenCentral()
}

I am using Grails 2.4.3 with GGTS Version: 3.6.1.RELEASE

sheehan commented 9 years ago

The plugin should go in the plugins block like:

grails.project.dependency.resolution = {
  repositories {
    // ...
  }
  dependencies {
    // ...
  }
  plugins {
    runtime ':console:1.5.5'
    // ...
  }
}
syeds-git commented 9 years ago

Thanks, it works now

sheehan commented 9 years ago

:+1:

syeds-git commented 9 years ago

It may be obvious to more experienced grails users but for people like me it would be useful to have this info in the readme. Thanks

sheehan commented 9 years ago

no problem. its updated now