How to install grails plugin from github repo? - grails

I looked in the Grails docs, but I could not find how to instruct the BuildConfig.groovy to tell my Grails app to get a plugin from a github repo. This is the repo I want to include, https://github.com/westonplatter/backbonejs-grails-plugin.

You have to clone (or fork based on your need) the repo and build the plugin to create a zip and then use the plugin as a plugin dependency in BuildConfig.
Once cloned, you can use grails maven-install on the plugin so that the zip would be available in local .m2 repo if you have one. Follow this for steps and this for a similar answer.
Otherwise, you can directly use the plugin in your app by following this answer or refer Specifying Plugin Locations.

Related

artifactory jenkins plugin with first class nuget support like maven packages

Looking here I have methods for maven but i cant find nuget:
https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins
How do I use the jenkins plugin to upload packages with Nuget Info attached to them?
It sure looks like Nuget is not supported within the plugin (plugin source on github). Nuget CLI reference is probably the next stop and then you'll want to figure out how to update the buildInfo with the package so the two objects can be linked together for management and cleanup. I don't know how to do that step yet but the REST interface. Also, theres a MSBUILD Artifactory plugin that might make this easier.
Publish would look something like this:
nuget push package -Source artifactoryRepoURL -ApiKey ArtifactoryAPIKey
On the Home artifactory page, there's a Set Me Up link for each repo that goes over the details.
The answer is you must use the jfrog cli or the upload() method of the plugin to add build info and do retention. You cannot upload with regular nuget methods.

how can i create a local copy of grails repository

Hi i ll like to create a working copy of grails plugin repository. This is not a git or svn repo.
http://repo.grails.org/grails/core/#
I install Artifactfactory but it don't have that option.
Any help is appreciated
thanks
It's a maven repo, you can setup a proxy in artifactory by folliwng the docs here: https://www.jfrog.com/confluence/display/RTF/Configuring+Repositories

Install locally a plugin downloaded via svn

I need to install a grails plugin for my aplication provided from a SVN repository, but I have no Idea on how to do this. I had already done the checkout to the repository, but netbeans opens it as a new grails project.
I was reading that it can be specify it using the maven-install command in the terminal, but I don't know how to use it.
Any suggestions?
Thanks :)

Updating jenkins plugin from source

I currently have Build User Vars Plugin 1.1 installed in my Jenkins. Since version 1.1 of the plugin, there has been some important changes to the plugin code, and I want to pick them up. The question is what is the least amount of work to package up the hpi/jpi file that I can push on my Jenkins install that will contain latest changes.
It's fairly easy to build a plugin locally; you can then upload the hpi/jpi file to Jenkins via the Advanced tab in the plugin manager.
See the Jenkins plugin tutorial for detailed steps.

Downloading a Grails plugin

Is there a Maven repo from where I can download grails plugin files.
I know I can do
install-plugin name
but I want to store it in my repo.
Grails Plugin Repo can be found here http://repo.grails.org/grails/plugins/org/grails/plugins/
or you can browse Artifactory and search for the plugin you need.

Resources