grails-3.1

Grails 3.1.4 and Docker - grails commands return “No profile found for name web”

◇◆丶佛笑我妖孽 提交于 2019-11-30 19:08:13
I have a simple grails app that runs fine by itself. It does not have a problem using the grails web profile with grails run-app However, when I build a docker image out of the app, the grails commands, such as grails run-app --stacktrace or grails dependency-report --stacktrace sent to docker fail with stacktrace: | Error Error occurred running Grails CLI: No profile found for name [web]. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.IllegalStateException: No profile found for name [web]. at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:507)

Why does Gradle downgrade my transitive dependencies in a Grails 3.1 application?

自古美人都是妖i 提交于 2019-11-30 04:50:40
I am having a problem with a transitive dependency of my grails-flyway plugin. org.grails.plugins:grails-flyway:0.2.1 declares a dependency to org.flywaydb:flyway-core:4.0.1 . When I include the plugin into my Grails 3.1.6 project Gradle downgrades Flyway to version 3.2.1. +--- org.grails.plugins:grails-flyway:0.2.1 | \--- org.flywaydb:flyway-core:4.0.1 -> 3.2.1 My Gradle build file looks like this buildscript { ext { grailsVersion = project.grailsVersion } repositories { maven { url "https://repo.grails.org/grails/core" } } dependencies { classpath "org.grails:grails-gradle-plugin:

Grails 3.1.4 and Docker - grails commands return “No profile found for name web”

本秂侑毒 提交于 2019-11-30 03:18:57
问题 I have a simple grails app that runs fine by itself. It does not have a problem using the grails web profile with grails run-app However, when I build a docker image out of the app, the grails commands, such as grails run-app --stacktrace or grails dependency-report --stacktrace sent to docker fail with stacktrace: | Error Error occurred running Grails CLI: No profile found for name [web]. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang

How to configure Grails 3.1.1 to use Hibernate 5

被刻印的时光 ゝ 提交于 2019-11-28 14:13:14
How do I make Grails 3.1.1 user Hibernate 5? The following actions report Hibernate version 4.3.11.Final: In Grails 3.1.1 grails create-app hello311 edit BootStrap.groovy as shown below grails run-app Console shows: Hibernate version is: 4.3.11.Final class BootStrap { def init = { servletContext -> println "Hibernate version is: ${org.hibernate.Version.getVersionString()}" } def destroy = {} } My build.gradle is unedited. The create-app command resulted in the following build.gradle file: buildscript { ext { grailsVersion = project.grailsVersion } repositories { mavenLocal() maven { url "https