From 51a31f07b50f0bae33f42b68852f2d20f1e9674d Mon Sep 17 00:00:00 2001 From: niravassar Date: Tue, 26 Oct 2021 14:21:59 -0500 Subject: [PATCH] grails5 upgrade --- complete/build.gradle | 2 +- initial/build.gradle | 73 +++++++++++++++++++++++++------------------ 2 files changed, 43 insertions(+), 32 deletions(-) diff --git a/complete/build.gradle b/complete/build.gradle index f3ddfc1..310cc36 100644 --- a/complete/build.gradle +++ b/complete/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { classpath "org.grails:grails-gradle-plugin:$grailsVersion" - classpath "org.grails.plugins:hibernate5:7.0.0" + classpath "org.grails.plugins:hibernate5:7.1.0" classpath "org.grails.plugins:views-gradle:2.0.0.RC2" } } diff --git a/initial/build.gradle b/initial/build.gradle index d39982f..ff39774 100644 --- a/initial/build.gradle +++ b/initial/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { classpath "org.grails:grails-gradle-plugin:$grailsVersion" - classpath "org.grails.plugins:hibernate5:7.0.0" + classpath "org.grails.plugins:hibernate5:7.1.0" classpath "org.grails.plugins:views-gradle:2.0.0.RC2" } } @@ -20,8 +20,13 @@ apply plugin:"org.grails.grails-web" apply plugin:"org.grails.plugins.views-json" repositories { - mavenLocal() maven { url "https://repo.grails.org/grails/core" } + maven { + url "https://oss.jfrog.org/artifactory/oss-snapshot-local" + } + maven { + url "https://oss.sonatype.org/content/repositories/snapshots/" + } } configurations { @@ -32,41 +37,45 @@ configurations { } dependencies { developmentOnly("org.springframework.boot:spring-boot-devtools") - compile "org.springframework.boot:spring-boot-starter-logging" - compile "org.springframework.boot:spring-boot-autoconfigure" - compile "org.grails:grails-core" - compile "org.springframework.boot:spring-boot-starter-actuator" - compile "org.springframework.boot:spring-boot-starter-tomcat" - compile "org.grails:grails-plugin-url-mappings" - compile "org.grails:grails-plugin-rest" - compile "org.grails:grails-plugin-codecs" - compile "org.grails:grails-plugin-interceptors" - compile "org.grails:grails-plugin-services" - compile "org.grails:grails-plugin-datasource" - compile "org.grails:grails-plugin-databinding" - compile "org.grails:grails-web-boot" - compile "org.grails:grails-logging" - compile "org.grails.plugins:cache" - compile "org.grails.plugins:async" - compile "org.grails.plugins:events" - compile "org.grails.plugins:hibernate5" - compile "org.hibernate:hibernate-core:5.4.0.Final" - compile "org.grails.plugins:views-json" - compile "org.grails.plugins:views-json-templates" + implementation "org.springframework.boot:spring-boot-starter-logging" + 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-plugin-url-mappings" + implementation "org.grails:grails-plugin-rest" + implementation "org.grails:grails-plugin-codecs" + implementation "org.grails:grails-plugin-interceptors" + implementation "org.grails:grails-plugin-services" + implementation "org.grails:grails-plugin-datasource" + implementation "org.grails:grails-plugin-databinding" + implementation "org.grails:grails-web-boot" + implementation "org.grails:grails-logging" + implementation "org.grails.plugins:cache" + implementation "org.grails.plugins:async" + implementation "org.grails.plugins:events" + implementation "org.grails.plugins:hibernate5" + implementation "org.hibernate:hibernate-core:5.5.7.Final" + implementation "org.grails.plugins:views-json" + implementation "org.grails.plugins:views-json-templates" console "org.grails:grails-console" profile "org.grails.profiles:rest-api" - runtime "org.glassfish.web:el-impl:2.1.2-b03" - runtime "com.h2database:h2" - runtime "org.apache.tomcat:tomcat-jdbc" - testCompile "org.grails:grails-gorm-testing-support" - testCompile "org.grails:grails-web-testing-support" + runtimeOnly "org.glassfish.web:el-impl:2.1.2-b03" + runtimeOnly "com.h2database:h2" + runtimeOnly "org.apache.tomcat:tomcat-jdbc" + testImplementation "org.grails:grails-gorm-testing-support" + testImplementation "org.grails:grails-web-testing-support" + testRuntimeOnly "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1" //tag::securityDependencies[] - compile 'org.grails.plugins:spring-security-core:4.0.0.RC2' - compile "org.grails.plugins:spring-security-rest:3.0.0.RC1" + compile 'org.grails.plugins:spring-security-core:4.0.3' + implementation "org.grails.plugins:spring-security-rest:3.0.0.RC1" //end::securityDependencies[] + //tag::mysqlDependency[] + runtime 'mysql:mysql-connector-java:5.1.48' + //end::mysqlDependency[] //tag::micronaut-http-client[] - testCompile "io.micronaut:micronaut-http-client" + testImplementation "io.micronaut:micronaut-http-client" //end::micronaut-http-client[] } @@ -78,3 +87,5 @@ bootRun { '-Xmx1024m') sourceResources sourceSets.main } + +tasks.withType(Test) { useJUnitPlatform() }