Cached Resources Plugin
  1. Cached Resources Plugin
  2. GPCACHEDRESOURCES-4

Runtime dependency not declared in transitive metadata

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: Grails-Cached-Resources 1.0
    • Fix Version/s: 1.1
    • Labels:
      None
    • Environment:
      grails 2.0.0 release (as of 1/19/2012)

      Description

      After running the command "grails install-plugin cachedresources" with grails 2.0.0 the output is:

      Loading Grails 2.0.0
      Configuring classpath.
      Environment set to development.....
      Resolving plugin cached-resources. Please wait...
      Downloading: grails-cached-resources-1.0.zip
      Installing zip cached-resources-1.0.zip.....
      Installed plugin cached-resources-1.0
      Resolving plugin JAR dependencies
      Warning
      Plugin declares a runtime dependency on plugin [cache-headers: 1.0.4 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
      ...
      plugins { compile ":cache-headers:1.0.4 > *" }
      Resolving plugin JAR dependencies.....
      Plugin installed.

        Activity

        Hide
        Raviteja added a comment -
        | Warning 
                    Plugin declares a runtime dependency on plugin [cache-headers: 1.0.4 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
                    ...
                    plugins {
                       compile ":cache-headers:1.0.4 > *"
                    }
                    
        
        | Error Error: The following plugins failed to load due to missing dependencies: [cachedResources]
        - Plugin: cachedResources
           - Dependencies:
               - resources (Required: 1.0.RC3 > *, Found: 1.1.6) 
               ! cacheHeaders (Required: 1.0.4 > *, Found: Not Installed) [INVALID]
        
        Show
        Raviteja added a comment - | Warning Plugin declares a runtime dependency on plugin [cache-headers: 1.0.4 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example: ... plugins { compile ":cache-headers:1.0.4 > *" } | Error Error: The following plugins failed to load due to missing dependencies: [cachedResources] - Plugin: cachedResources - Dependencies: - resources (Required: 1.0.RC3 > *, Found: 1.1.6) ! cacheHeaders (Required: 1.0.4 > *, Found: Not Installed) [INVALID]
        Hide
        Marc Palmer added a comment -

        Thanks for that. I'll try to get a fix release out soon.

        To workaround, just add:

         compile ":cache-headers:1.0.4 > *"
        

        to the plugins section of your app's BuildConfig

        Show
        Marc Palmer added a comment - Thanks for that. I'll try to get a fix release out soon. To workaround, just add: compile ":cache-headers:1.0.4 > *" to the plugins section of your app's BuildConfig
        Hide
        Roy Willemse added a comment -

        Workaround resulted in:

        | Error WARNING: Specified dependency definition compile(:cache-headers:1.0.4 > *) is invalid! Skipping..
        

        Changed it to:

        compile ":cache-headers:1.0.4"
        
        Show
        Roy Willemse added a comment - Workaround resulted in: | Error WARNING: Specified dependency definition compile(:cache-headers:1.0.4 > *) is invalid! Skipping.. Changed it to: compile ":cache-headers:1.0.4"

          People

          • Assignee:
            Marc Palmer
            Reporter:
            Zack Brunson
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: