Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

gradle plugin fails to build project #62

Closed
benignbala opened this issue Nov 5, 2015 · 4 comments
Closed

gradle plugin fails to build project #62

benignbala opened this issue Nov 5, 2015 · 4 comments

Comments

@benignbala
Copy link

I am not able to use the beta5 with gradle because gradle Could not find org.ysb33r.groovy:dsl:1.0-beta5. I am using jcenter() as well as a build script dependency. Please find the gradle stacktrace below. Thanks

FAILURE: Build failed with an exception.

@benignbala benignbala changed the title gradle build fails gradle plugin fails to build project Nov 5, 2015
@ysb33r
Copy link
Owner

ysb33r commented Nov 5, 2015

There is no artifact called org.ysb33r.groovy:dsl:1.0-beta5. It is called
org.ysb33r.groovy:groovy-vfs:1.0-beta5.

Try this little build script

buildscript {
  repositories {
    jcenter()
  }
}


plugins {
  id 'org.ysb33r.vfs' version '1.0-beta5'
}

Run it with gradle tasks -i -g FOO. Then run find FOO -name '*vfs*.jar and you should see the groovy-vfs jar has been downloaded.

@ysb33r
Copy link
Owner

ysb33r commented Nov 5, 2015

You can also try

repositories {
  jcenter()
  maven {
      url "https://plugins.gradle.org/m2/"
    }
}

configurations {
  examples
}

dependencies {
  examples 'org.ysb33r.gradle:vfs-gradle-plugin:1.0-beta5'
}

and then run gradle dependencies to see if this resolves correctly for you.

@benignbala
Copy link
Author

It actually looks like the order of the repositories in the buildscript section matters. If I have the maven repo first and then the jcenter, it fails. If I swap the order, it works fine

This fails:

    repositories {
        maven {
                  url "https://plugins.gradle.org/m2/"
        }
        jcenter()
    } 

This works

    repositories {
        jcenter()
        maven {
                  url "https://plugins.gradle.org/m2/"
        }
    } 

@ysb33r
Copy link
Owner

ysb33r commented Nov 5, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants