craigburke/client-dependencies-gradle

Cannot get ckeditor from bower

amimas opened this issue · 0 comments

Hi,

I'm trying to use this gradle plugin to retrieve ckeditor. According to their documentation (link below), I need to run bower install ckeditor#full/4.7.3 in order to retrieve "full" edition package of version 4.7.3

https://docs.ckeditor.com/ckeditor4/docs/?mobile=/guide/dev_package_managers#dev_package_managers-section-bower

That obviously works but I'm having difficulty translating that to this gradle plugin. My build.gradle looks like this:

clientDependencies {
        // these are front-end dependencies that are pulled from npm/bower

        defaultCopy = {
                include '**'
        }

        registry 'realBower', type:'bower', url:'https://registry.bower.io'

        realBower {
                'ckeditor'('4.7.3')
        }
}

That works but it seems I'm getting a lot more files than expected. According to ckeditor's docs, the default package is "standard-all", but I'm looking for "full".

So, I tried 'ckeditor'('full/4.7.3') but that didn't work. I get following exception:

Caused by: org.ajoberstar.grgit.exception.GrgitException: Problem cloning repository.
	at org.ajoberstar.grgit.operation.CloneOp.call(CloneOp.groovy:109)
	at org.ajoberstar.grgit.operation.CloneOp.call(CloneOp.groovy)
	at java_util_concurrent_Callable$call.call(Unknown Source)

Due to

Caused by: org.eclipse.jgit.api.errors.TransportException: https://github.com/full/4.7.3: Authentication is required but no CredentialsProvider has been registered
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:200)

Notice that the URL is incorrect: https://github.com/full/4.7.3. So, I tried 'ckeditor'('@full/4.7.3'). This gives me same Problem cloning repository exception due to

Caused by: org.eclipse.jgit.api.errors.TransportException: https://github.com/@full/4.7.3: 400 Bad Request
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:200)

Finally I tried same syntax used in bower (bower install ckeditor#full/4.7.3) as 'ckeditor'('#full/4.7.3') and this also returns same Problem cloning repository exception due to

Caused by: org.eclipse.jgit.api.errors.TransportException: invalid advertisement of 
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:200)
	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:134)

I'm not really sure what other syntax to try. I've read the full document several times but not sure what I might have missed. Can you please suggest how I can retrieve the package I'm struggling with?