Created
June 4, 2015 05:33
-
-
Save iNikem/a142d15c69dc5be154b3 to your computer and use it in GitHub Desktop.
The example or jitpack repo breaking gradle build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wrapper { | |
gradleVersion '2.4' | |
} | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.moowork.gradle:gradle-node-plugin:0.6' | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'com.moowork.node' | |
repositories { | |
jcenter() | |
maven { | |
url "https://jitpack.io" | |
} | |
} | |
dependencies { | |
testRuntime "com.github.cglib.cglib:cglib-nodep:5503bcca74" | |
} | |
node { | |
version = '0.10.31' | |
download = true | |
} | |
task jasmineRun(type: NodeTask) { | |
script = file('dummy') | |
} | |
test.dependsOn(jasmineRun) |
Thanks @iNikem! We were able to track down the issue and fix it.
Problem was that the plugin was looking for the 'org.nodejs:node:0.10.31' dependency in all repositories and asking them with a http head request. JitPack didn't yet handle head requests and was returning status code 204. The plugin adds its own repository after jitpack: http://nodejs.org/dist/ but jitpack's response stopped the dependency resolution process.
Now we've started supporting head requests and return 404 for artifacts that are not hosted on JitPack.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
gradle clean build