davidtinker / grails-cors

Grails plugin to add Cross-Origin Resource Sharing (CORS) headers
38 stars 21 forks source link

Plugin fails on compile #15

Closed adamzr closed 11 years ago

adamzr commented 11 years ago

When I added

compile ":cors:1.1.0"

to my dependencies

I got:

Downloading: cors-1.1.0.pom.sha1 :: problems summary :: :::: WARNINGS
    ::          UNRESOLVED DEPENDENCIES         ::
    ::::::::::::::::::::::::::::::::::::::::::::::
    :: #cors;1.1.0: java.text.ParseException: inconsistent module descriptor file found in 'http://plugins.grails.org/grails-cors/tags/RELEASE_1_1_0/cors-1.1.0.pom': bad organisation: expected='' found='org.grails.plugins'; 
    ::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS grailsCentral: bad organisation found in http://plugins.grails.org/grails-cors/tags/RELEASE_1_1_0/cors-1.1.0.pom: expected='' found='org.grails.plugins' Downloading: cors-1.1.0.pom.sha1 :: problems summary :: :::: WARNINGS
    ::          UNRESOLVED DEPENDENCIES         ::
    ::::::::::::::::::::::::::::::::::::::::::::::
    :: #cors;1.1.0: java.text.ParseException: inconsistent module descriptor file found in 'http://plugins.grails.org/grails-cors/tags/RELEASE_1_1_0/cors-1.1.0.pom': bad organisation: expected='' found='org.grails.plugins'; 
    ::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS grailsCentral: bad organisation found in http://plugins.grails.org/grails-cors/tags/RELEASE_1_1_0/cors-1.1.0.pom: expected='' found='org.grails.plugins' Downloading: cors-1.1.0.pom.sha1 :: problems summary :: :::: WARNINGS
    ::          UNRESOLVED DEPENDENCIES         ::
    ::::::::::::::::::::::::::::::::::::::::::::::
    :: #cors;1.1.0: java.text.ParseException: inconsistent module descriptor file found in 'http://plugins.grails.org/grails-cors/tags/RELEASE_1_1_0/cors-1.1.0.pom': bad organisation: expected='' found='org.grails.plugins'; 
    ::::::::::::::::::::::::::::::::::::::::::::::

:::: ERRORS grailsCentral: bad organisation found in http://plugins.grails.org/grails-cors/tags/RELEASE_1_1_0/cors-1.1.0.pom: expected='' found='org.grails.plugins' | Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

davidtinker commented 11 years ago

You need to add it to plugins:

plugins {
    compile ":hibernate:$grailsVersion"
    ...
    runtime ':cors:1.1.0'
    ...