how can i create a local copy of grails repository - grails

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

Related

GitHub Action: Pass actions/setup-java#v3's maven repo to own action

I implemented an OWASP Dependency Checker like https://github.com/dependency-check/Dependency-Check_Action. But I do not use the CLI, I use the maven plugin. Every night a docker image is build via the GitHub Actions to get the latest vulnerabilities database, which is stored in the .m2 directory.
So, now I want to use this action in a GitHub Workflow. Everything works fine apart from one use case: To build and install a maven project to the local .m2 repository and enable my action to access these artifacts.
Extract from workflow file
- uses: actions/setup-java#v3
with:
distribution: temurin
java-version: '17'
cache: maven <- local maven repo
- mvn install ...
- uses: mycoolaction#main <- create another intern maven repo in the docker image. this want the artifacts from the prev mvn install
Can I pass the maven repo from the runner to my action? Or copy the artifacts?
Things I have tried:
Docker Image is built at start up. Artifacts do not exists at this point. I cannot copy the files from the action - and maybe here are some security gates?
Actions like https://github.com/addnab/docker-run-action and mounting the .m2 als volume. Did not work out. But probably worth to investigate further.
Do you think it is possible to achieve the merge of the two .m2 repos (runner and action)? Am I missing something?
P.S. I want to maintain the OWASP check via gloabl workflows and not maintaining every single pom in the organization.
While I am writing this, I think of a solution via parent pom. But on a new version I would also have to update each pom to the new version...
I would be very grateful if someone could share his or her experience and opinion with me to achieve the best maintainable solution in this case.
Thanks in advance!

Build a production custom docker image of grafana from it github

I need make some changes on the code of grafana an them compile it.
I have downloaded the github repo, made the changes and rum
docker build -t custom-grafana -f Dockerfile .
As you can see many site over internet.
The problem is that compile in this way make a build from v7.5.0-dev version of grafana, and I need use the latest version...
I cant find de way to compile a custom grafana code using the latest version of gfrafana code.
I need help...
Thank you!
If you have cloned the grafana repository from GitHub than you must checkout the branch/tag that you want to compile.
The latest version at the moment is 7.5.6, you can just check it out before building the docker container.
git checkout v7.5.6

How to get dependencies which are not on github through Carthage?

I am trying to use only carthage for dependency manager. But what happens if the project is not available on github? What is work through for that?
Thanks
Using an example on Bitbucket you can do the following:
Setup SSH keys for the acct
use the direct ssh sync
git "git#bitbucket.org:{acct}/{repo}.git"
In general that line can be used for any repo.
git "http://git.mypersonalserver.net/mySource/myrepo.git"

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 :)

How to install grails plugin from github repo?

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.

Resources