Skip to content

Commit

Permalink
Merge pull request #19 from eusorov/grails5-update
Browse files Browse the repository at this point in the history
update to grails5.3.5
  • Loading branch information
codeconsole authored Jan 26, 2024
2 parents 006c399 + 4fbbe1a commit 0209f32
Show file tree
Hide file tree
Showing 10 changed files with 369 additions and 345 deletions.
67 changes: 37 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:hibernate5:$gormHibernate5Version"
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
classpath "org.grails.plugins:hibernate5:$gormHibernate5Version"
classpath "io.github.gradle-nexus:publish-plugin:1.0.0"
}
}
Expand All @@ -22,36 +22,35 @@ repositories {
maven { url "https://repo.grails.org/grails/core" }
}

dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}

dependencies {
provided 'org.springframework.boot:spring-boot-starter-logging'
provided "org.springframework.boot:spring-boot-starter-actuator"
provided "org.springframework.boot:spring-boot-autoconfigure"
provided "org.springframework.boot:spring-boot-starter-tomcat"

provided "org.grails:grails-web-boot"
provided "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:$hibernateVersion"
compile "org.grails:grails-logging"
compile "org.grails:grails-plugin-rest"
compile "org.grails:grails-plugin-databinding"
compile "org.grails:grails-plugin-i18n"
compile "org.grails:grails-plugin-services"
compile "org.grails:grails-plugin-url-mappings"
compile "org.grails:grails-plugin-interceptors"
compile "org.grails.plugins:async"
implementation "org.grails:grails-core"

implementation "org.springframework.boot:spring-boot-starter-logging"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation "org.springframework.boot:spring-boot-autoconfigure"
implementation "org.springframework.boot:spring-boot-starter-tomcat"

implementation "org.grails:grails-web-boot"
implementation "org.grails.plugins:hibernate5"
implementation "org.hibernate:hibernate-core"
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:grails-datastore-gorm-hibernate5:$gormHibernate5Version"
implementation "org.grails.plugins:cache"
implementation "org.grails.plugins:async"
profile "org.grails.profiles:web-plugin"
runtime "com.h2database:h2"
runtime "org.apache.tomcat:tomcat-jdbc"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails.plugins:geb"
testCompile "org.grails:grails-web-testing-support"
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
compileOnly "io.micronaut:micronaut-inject-groovy"
testImplementation "io.micronaut:micronaut-inject-groovy"
testImplementation "org.grails:grails-gorm-testing-support"
testImplementation "org.grails:grails-web-testing-support"

console "org.grails:grails-console"
}
Expand Down Expand Up @@ -179,3 +178,11 @@ task snapshotVersion {
}
}
}

tasks.withType(Test) {
useJUnitPlatform()
testLogging {
events = ["passed", "failed", "skipped"]
showStandardStreams = false
}
}
11 changes: 6 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
version=4.0.0-SNAPSHOT
grailsVersion=4.0.11
gorm.version=7.0.8.RELEASE
gormHibernate5Version=7.0.5
hibernateVersion=5.4.18.Final
version=5.0.0-SNAPSHOT
grailsVersion=5.3.5
gorm.version=7.3.4
gormHibernate5Version=7.3.1
grailsGradlePluginVersion=5.3.1
groovyVersion=3.0.11
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Fri Nov 27 23:09:32 CET 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
6 changes: 3 additions & 3 deletions grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ environments:
development:
dataSource:
dbCreate: create-drop
url: jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
url: jdbc:h2:mem:devDb;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
test:
dataSource:
dbCreate: update
url: jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
url: jdbc:h2:mem:testDb;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
production:
dataSource:
dbCreate: update
url: jdbc:h2:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
url: jdbc:h2:prodDb;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
properties:
jmxEnabled: true
initialSize: 5
Expand Down
28 changes: 0 additions & 28 deletions grails-app/conf/logback.groovy

This file was deleted.

20 changes: 20 additions & 0 deletions grails-app/conf/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<pattern>%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex</pattern>
</encoder>
</appender>

<root level="error">
<appender-ref ref="STDOUT" />
</root>
<logger name="org.hibernate.orm.deprecation" level="ERROR" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
</configuration>
3 changes: 3 additions & 0 deletions grails-app/init/grails/plugins/taggable/Application.groovy
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package grails.plugins.taggable


import grails.boot.GrailsApp
import grails.boot.config.GrailsAutoConfiguration
import grails.plugins.metadata.PluginSource

@PluginSource
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TagsTagLib {
throwTagError("Required attribute [tags] must be a map of tag names to tag counts")
}

def classes = grailsApplication.config.grails.taggable.css.classes ?: defaultCssClasses
def classes = grailsApplication.config.getProperty("grails.taggable.css.classes", ArrayList, defaultCssClasses)

// The named arguments for the 'link' GSP tag used to display each tag.
def idProperty = attrs?.idProperty ?: "id"
Expand Down
Loading

0 comments on commit 0209f32

Please sign in to comment.