IndianerJones
02/27/2024, 11:28 AMtasks.withType(GroovyCompile) {
options.fork = true
options.forkOptions.memoryMaximumSize = '4096m'
options.incremental = true
}
This are our dependencies from Grails (Application specific libraries excluded)
developmentOnly("org.springframework.boot:spring-boot-devtools")
compileOnly "io.micronaut:micronaut-inject-groovy"
console "org.grails:grails-console"
implementation "org.springframework.boot:spring-boot-starter-logging"
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation "org.springframework.boot:spring-boot-autoconfigure"
implementation "org.grails:grails-core"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-tomcat"
implementation "org.grails:grails-web-boot"
implementation "org.grails:grails-logging"
implementation "org.grails:grails-plugin-rest"
implementation "org.grails:grails-plugin-databinding"
implementation "org.grails:grails-plugin-i18n"
implementation "org.grails:grails-plugin-services"
implementation "org.grails:grails-plugin-url-mappings"
implementation "org.grails:grails-plugin-interceptors"
implementation "org.grails.plugins:cache"
implementation "org.grails.plugins:async"
implementation "org.grails.plugins:scaffolding"
implementation "org.grails.plugins:hibernate5"
implementation "org.hibernate:hibernate-core:5.6.11.Final"
implementation "org.grails.plugins:events"
implementation "org.grails.plugins:gsp"
profile "org.grails.profiles:web"
Maybe we are just missing something?
After reading about issues with compiling Groovy files here, I'm considering transferring everything to Java or Kotlin. However, this effort wouldn't be worthwhile if it's not related to the problem at hand.giangio
02/27/2024, 2:47 PMbuild.gradle file I have this:
def frameworkVersion
def javaVersion = JavaVersion.current()
if (javaVersion == JavaVersion.VERSION_1_8) {
frameworkVersion = '23.8-SNAPSHOT'
println "*** JAVA ${javaVersion} - SPRING LOADED" // WORKS ONLY WITH JAVA 8
println "*** Reloads modified classes without restarting the application"
agent "org.springframework:springloaded:1.2.8.RELEASE"
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:3.4.7"
runtimeOnly "io.methvin:directory-watcher:0.9.6" // Native OSX file watcher
} else {
frameworkVersion = '23-SNAPSHOT'
println "*** JAVA ${javaVersion} - SPRING DEV TOOLS"
println "*** Restarts the whole application when BootStrap.groovy is modified"
println "*** NOTE: switch to JAVA 8 to enable hot reloading of modified classes"
developmentOnly "org.springframework.boot:spring-boot-devtools"
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:4.3.0"
}giangio
02/27/2024, 2:48 PMgiangio
02/27/2024, 2:50 PMIndianerJones
02/28/2024, 8:00 AMpuneetbehl
02/28/2024, 8:30 AMgiangio
02/28/2024, 10:59 AMgiangio
02/28/2024, 11:02 AMIndianerJones
02/28/2024, 11:58 AMgiangio
02/28/2024, 2:42 PMspring:
devtools:
restart:
trigger-file: BootStrap.groovy
quiet-period: 2000
poll-interval: 3000
additional-paths: .
additional-exclude:
- '*.gsp'
- '**/*.gsp'
- '*.gson'
- '**/*.gson'
- 'logback.groovy'
- '*.properties'
- '**/*BootStrap.groovy'IndianerJones
03/05/2024, 7:41 AMpuneetbehl
03/06/2024, 4:36 PMIndianerJones
03/18/2024, 10:49 AM