You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/05/02 23:30:24 UTC
(grails-core) 01/01: Merge pull request #14696 from jdaugherty/7.0.x
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 594ff69ae6fb9c0c1315bc52b28a904905b02f71
Merge: cf0cc75a44 2fa484138b
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Fri May 2 19:30:18 2025 -0400
Merge pull request #14696 from jdaugherty/7.0.x
Automate grailsw distribution
grails-profiles/.gitignore | 3 +
grails-profiles/base/build.gradle | 20 +++
grails-profiles/base/skeleton/grails-wrapper.jar | Bin 5743 -> 0 bytes
grails-profiles/base/skeleton/grailsw | 152 ------------------
grails-profiles/base/skeleton/grailsw.bat | 89 -----------
grails-profiles/profile/build.gradle | 20 +++
.../profile/skeleton/grails-wrapper.jar | Bin 5743 -> 0 bytes
grails-profiles/profile/skeleton/grailsw | 152 ------------------
grails-profiles/profile/skeleton/grailsw.bat | 89 -----------
.../src/main/groovy/grails/init/RunCommand.groovy | 2 +
grails-wrapper/build.gradle | 58 ++++++-
grails-wrapper/shell/grailsw | 169 ---------------------
grails-wrapper/shell/grailsw.bat | 106 -------------
.../main/java/grails/init/FindSnapshotHandler.java | 79 ++++++++++
.../src/main/java/grails/init/Start.java | 42 +++--
15 files changed, 212 insertions(+), 769 deletions(-)
diff --cc grails-profiles/base/build.gradle
index ec2f500e52,1cf182937f..1fd0cb869a
--- a/grails-profiles/base/build.gradle
+++ b/grails-profiles/base/build.gradle
@@@ -32,8 -32,29 +32,28 @@@ ext
dependencies {
profileRuntimeApi platform(project(':grails-bom'))
profileRuntimeApi 'org.apache.groovy:groovy-jmx' // stop script uses GroovyMBean
- profileRuntimeApi project(':grails-shell-cli')
}
+ TaskProvider<Copy> copyWrapper = tasks.register('copyGrailsWrapperScripts', Copy)
+ copyWrapper.configure { Copy copy ->
+ Project wrapperProject = rootProject.project(':grails-wrapper')
+ copy.dependsOn(wrapperProject.tasks.named('installDist'))
+ copy.from(wrapperProject.layout.buildDirectory.dir('install/grails-wrapper'))
+ copy.into(project.layout.projectDirectory.dir('skeleton'))
+ }
+
+ tasks.named('sourcesProfileJar').configure {
+ it.dependsOn(copyWrapper)
+ }
+
+ tasks.named('processProfileResources').configure {
+ it.dependsOn(copyWrapper)
+ }
+
+ tasks.named('compileProfile').configure {
+ it.dependsOn(copyWrapper)
+ }
+
apply {
from rootProject.layout.projectDirectory.file('gradle/publish-config.gradle')
}