Skip to content

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

Open
@jamesfredley

Description

@jamesfredley

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions