Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Fix Gradle/Google Code resolver for Gradle 1.3 #41

Open
eriwen opened this issue Dec 14, 2012 · 10 comments
Open

Fix Gradle/Google Code resolver for Gradle 1.3 #41

eriwen opened this issue Dec 14, 2012 · 10 comments
Labels

Comments

@eriwen
Copy link
Owner

eriwen commented Dec 14, 2012

The ResolverFactory seems to have been changed in Gradle 1.3, causing the plugin to break. Need to refactor or remove.

@jeffastorey
Copy link

Do you know what in particular is referencing the ResolverFactory?

@eriwen
Copy link
Owner Author

eriwen commented Dec 18, 2012

@eriwen
Copy link
Owner Author

eriwen commented Jan 7, 2013

Update to plugin version 1.3 after Maven Central syncs in a couple hours.

@jeffastorey
Copy link

Thanks, will do.

@jeffastorey
Copy link

Build seems to be broken after this update...

@eriwen
Copy link
Owner Author

eriwen commented Jan 9, 2013

@jeffastorey I saw that, but for some reason haven't been able to replicate it. Passes locally with Gradle 1.2/1.3. Ideas welcome.

@jeffastorey
Copy link

It failed for me locally (Ubuntu 12.04 64-bit, Oracle Java 7) both with gradlew and gradle. I did some digging and found that the spec that is failing combined files are not combined in the order they were created.

actual: function fn1(){console.log("1")}function fn3(){console.log("3")}function fn2(){console.log("2")};
expected: function fn1(){console.log("1")}function fn2(){console.log("2")}function fn3(){console.log("3")};

Maybe in the test you could set the combinejs source to be a LinkedHashSet of the files so the order is guaranteed?

@louiseliu
Copy link

@jeffastorey @eriwen It failed for me too.

Condition not satisfied:

file("build/all-min.js").text == 'function fn1(){console.log("1")}function fn2(){console.log("2")}function fn3(){console.log("3")};'
| | |
| | false
| | 4 differences (95% similarity)
| | function fn1(){console.log("1")}function fn(3)(){console.log("(3)")}function fn(2)(){console.log("(2)")};
| | function fn1(){console.log("1")}function fn(2)(){console.log("(2)")}function fn(3)(){console.log("(3)")};
| function fn1(){console.log("1")}function fn3(){console.log("3")}function fn2(){console.log("2")};
/home/liuguolin/git/gradle/gradle-js-plugin/build/tmp/testWorkspaces/unknown-test-class-10/build/all-min.js

at com.eriwen.gradle.js.JsPluginFunctionalTest.tasks operation(JsPluginFunctionalTest.groovy:122)

@eriwen
Copy link
Owner Author

eriwen commented Jan 10, 2013

Bah. Getting a different test failure on JSHintTest > "build passes with only valid files". I think I'm going to stop guessing and just download VirtualBox/Ubuntu and make it pass there before spamming everyone with commits that fail the build.

Reopening this for now.

@eriwen eriwen reopened this Jan 10, 2013
@jeffastorey
Copy link

Has there been a resolution on this so we can get the build passing again?

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

No branches or pull requests

3 participants