Future proofing Grails 2 build

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Future proofing Grails 2 build

micke_
Hi

I'm looking after an application which is based on Grails 2, a pretty big application depending on a bunch of plugins; not feasible to migrate to Grails 3/4 or pure spring.

I am worried that artifacts the build depends on will one day disappear off the internet breaking the build.

What steps can I take to prevent this from happening allowing me to fix issues even after plugin repos etc. disappears.

I have started to create a little base docker image into which I've copied started to copy grails home plugins content and ivy cache.

I'm curious what others have done and if folks can recommend/confirm which folders (plugins/ivy/.m2/etc.) I need to make sure to backup.
If there was a way to mirror everything I need into something like an S3 bucket that'd be brilliant.

Many thanks,
Micke

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/610e2eb5-6765-4780-8b9d-8984c415a983o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Future proofing Grails 2 build

nutmix
I know several companies and projects in the same boat- big grails 2 applications, with no upgrade path, nor compelling reason to upgrade.  This is one of the biggest criticism of the otherwise excellent grails framework - making significant braking changes to the frameworks with little relative benefit and not fixing bugs or creating a stable platform.  There should be LTS versions of each major version, which would solve our issue, and make grails a viable platform again.

On Friday, 17 July 2020 17:23:29 UTC+2, Mikael Andersson wrote:
Hi

I'm looking after an application which is based on Grails 2, a pretty big application depending on a bunch of plugins; not feasible to migrate to Grails 3/4 or pure spring.

I am worried that artifacts the build depends on will one day disappear off the internet breaking the build.

What steps can I take to prevent this from happening allowing me to fix issues even after plugin repos etc. disappears.

I have started to create a little base docker image into which I've copied started to copy grails home plugins content and ivy cache.

I'm curious what others have done and if folks can recommend/confirm which folders (plugins/ivy/.m2/etc.) I need to make sure to backup.
If there was a way to mirror everything I need into something like an S3 bucket that'd be brilliant.

Many thanks,
Micke

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/ab183f97-a0cd-46f3-876b-dddd29c0a335o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Future proofing Grails 2 build

Mihai Glonț
In reply to this post by micke_

If it's just mitigating against external dependencies becoming unavailable, I think a hosted Artifactory instance should be enough.

One you have it running, you just need to put this in the top section of the repositories block of BuildConfig:

mavenRepo("https://artifactory.mycompany.com/repo") {
    authentication(username: "username", password: "pwd")
}
Mihai
On 17/07/2020 16:23, Mikael Andersson wrote:
Hi

I'm looking after an application which is based on Grails 2, a pretty big application depending on a bunch of plugins; not feasible to migrate to Grails 3/4 or pure spring.

I am worried that artifacts the build depends on will one day disappear off the internet breaking the build.

What steps can I take to prevent this from happening allowing me to fix issues even after plugin repos etc. disappears.

I have started to create a little base docker image into which I've copied started to copy grails home plugins content and ivy cache.

I'm curious what others have done and if folks can recommend/confirm which folders (plugins/ivy/.m2/etc.) I need to make sure to backup.
If there was a way to mirror everything I need into something like an S3 bucket that'd be brilliant.

Many thanks,
Micke
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/610e2eb5-6765-4780-8b9d-8984c415a983o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/4a50b0f5-c279-1221-47b0-89e468abce9e%40ebi.ac.uk.
Reply | Threaded
Open this post in threaded view
|

Re: Future proofing Grails 2 build

micke_
Good suggestion.

Are there affordable artifactory hosting options? 
Just checked JFrog's site and that is too expensive (I'm a small independent dev), and I don't really want to self host.

I was looking at the new AWS CodeArtifact with hopes that it would do the trick, but at the moment it is extremely limited in what I can do due to only allowing very few pre-configured external repositories (e.g. maven central). Quite disappointing I couldn't specify a custom repository.

Ideally I would like to somehow upload everything into an S3 bucket, but not sure which repo format is used for various bits and if the repo format is replicated locally...

Back in the day when grails 3 was released I would have migrated if it wasn't such a drastic change with plugins I depended on being unavailable.

Thanks for all suggestions, please keep them coming : )

- Micke

On Fri, 17 Jul 2020 at 19:09, Mihai Glont <[hidden email]> wrote:

If it's just mitigating against external dependencies becoming unavailable, I think a hosted Artifactory instance should be enough.

One you have it running, you just need to put this in the top section of the repositories block of BuildConfig:

mavenRepo("https://artifactory.mycompany.com/repo") {
    authentication(username: "username", password: "pwd")
}
Mihai
On 17/07/2020 16:23, Mikael Andersson wrote:
Hi

I'm looking after an application which is based on Grails 2, a pretty big application depending on a bunch of plugins; not feasible to migrate to Grails 3/4 or pure spring.

I am worried that artifacts the build depends on will one day disappear off the internet breaking the build.

What steps can I take to prevent this from happening allowing me to fix issues even after plugin repos etc. disappears.

I have started to create a little base docker image into which I've copied started to copy grails home plugins content and ivy cache.

I'm curious what others have done and if folks can recommend/confirm which folders (plugins/ivy/.m2/etc.) I need to make sure to backup.
If there was a way to mirror everything I need into something like an S3 bucket that'd be brilliant.

Many thanks,
Micke
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/610e2eb5-6765-4780-8b9d-8984c415a983o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/4a50b0f5-c279-1221-47b0-89e468abce9e%40ebi.ac.uk.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAMPMOdYJ4N_w4iXvtdGZPFeAdXYUvWujYwuTJwF6GUFGS-oBxQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Future proofing Grails 2 build

John Underwood
We self-host Artifactory, installed via Docker. Wasn't too bad to get up and running.

- John Underwood

On Sat, Jul 18, 2020, 6:40 AM Mikael Andersson <[hidden email]> wrote:
Good suggestion.

Are there affordable artifactory hosting options? 
Just checked JFrog's site and that is too expensive (I'm a small independent dev), and I don't really want to self host.

I was looking at the new AWS CodeArtifact with hopes that it would do the trick, but at the moment it is extremely limited in what I can do due to only allowing very few pre-configured external repositories (e.g. maven central). Quite disappointing I couldn't specify a custom repository.

Ideally I would like to somehow upload everything into an S3 bucket, but not sure which repo format is used for various bits and if the repo format is replicated locally...

Back in the day when grails 3 was released I would have migrated if it wasn't such a drastic change with plugins I depended on being unavailable.

Thanks for all suggestions, please keep them coming : )

- Micke

On Fri, 17 Jul 2020 at 19:09, Mihai Glont <[hidden email]> wrote:

If it's just mitigating against external dependencies becoming unavailable, I think a hosted Artifactory instance should be enough.

One you have it running, you just need to put this in the top section of the repositories block of BuildConfig:

mavenRepo("https://artifactory.mycompany.com/repo") {
    authentication(username: "username", password: "pwd")
}
Mihai
On 17/07/2020 16:23, Mikael Andersson wrote:
Hi

I'm looking after an application which is based on Grails 2, a pretty big application depending on a bunch of plugins; not feasible to migrate to Grails 3/4 or pure spring.

I am worried that artifacts the build depends on will one day disappear off the internet breaking the build.

What steps can I take to prevent this from happening allowing me to fix issues even after plugin repos etc. disappears.

I have started to create a little base docker image into which I've copied started to copy grails home plugins content and ivy cache.

I'm curious what others have done and if folks can recommend/confirm which folders (plugins/ivy/.m2/etc.) I need to make sure to backup.
If there was a way to mirror everything I need into something like an S3 bucket that'd be brilliant.

Many thanks,
Micke
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/610e2eb5-6765-4780-8b9d-8984c415a983o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/4a50b0f5-c279-1221-47b0-89e468abce9e%40ebi.ac.uk.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAMPMOdYJ4N_w4iXvtdGZPFeAdXYUvWujYwuTJwF6GUFGS-oBxQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAOK1%2BE3Q%3Dj5FcN2gQNujBQvUa-D8cBG%2BauKDm7%3D8aPhJ340yQA%40mail.gmail.com.