Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grails 7: for generated apps make hotswap-agent work with little or no user action #445

Open
jamesfredley opened this issue Dec 9, 2024 · 0 comments

Comments

@jamesfredley
Copy link
Contributor

jamesfredley commented Dec 9, 2024

https://github.com/HotswapProjects/HotswapAgent/releases

Updated Groovy resetAgent: https://github.com/JetBrains/intellij-community/blob/master/plugins/groovy/hotswap/agentSrc/org/groovy/debug/hotswap/ResetAgent.java

git clone --single-branch -b 7.0.0-SNAPSHOT https://github.com/codeconsole/website.git website7 && cd website7 && ./gradlew bootRun

if you want to try Hot Swap Agent then hit CTRL-C and run the following

sdk install java 21.0.4-jbr
mkdir ~/.sdkman/candidates/java/21.0.4-jbr/lib/hotswap/
cp lib/hotswap-agent-2.0.1.jar ~/.sdkman/candidates/java/21.0.4-jbr/lib/hotswap/hotswap-agent.jar
./grailsw
grails> run-app

1 line command to getting hot swap working without having to do anything

git clone --single-branch -b 7.0.0-SNAPSHOT https://github.com/codeconsole/website.git website7 && cd website7 && sdk env install && ./hotswapSetup.sh && ./grailsw

Let's explore getting hotswap agent to work on grails-forge generated apps without any user action. This may utilize Gradle toolchains with https://plugins.gradle.org/plugin/org.gradle.toolchains.foojay-resolver-convention plus a gradle plugin to place the required jars in the right locations.

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

No branches or pull requests

1 participant