diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 10ea0b22..ed95a560 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- java: ['8']
+ java: ['17']
env:
WORKSPACE: ${{ github.workspace }}
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8
@@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
- distribution: 'adopt'
+ distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Run Tests
if: github.event_name == 'pull_request'
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3389db9b..ac11b6cf 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- java: ['8']
+ java: ['17']
env:
GIT_USER_NAME: puneetbehl
GIT_USER_EMAIL: behlp@objectcomputing.com
@@ -20,7 +20,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
- distribution: 'adopt'
+ distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Set the current release version
id: release_version
diff --git a/build.gradle b/build.gradle
index cfb45f0a..c1df6a51 100644
--- a/build.gradle
+++ b/build.gradle
@@ -29,4 +29,16 @@ if (isReleaseVersion) {
}
}
}
-}
\ No newline at end of file
+}
+
+subprojects {
+ configurations.configureEach {
+ resolutionStrategy.eachDependency { DependencyResolveDetails details ->
+ if ((details.requested.group == 'org.codehaus.groovy' || details.requested.group == 'org.apache.groovy') && details.requested.name != 'groovy-bom') {
+ String groovyVersion = findProperty('groovyVersion') ?: libs.versions.groovy.get()
+ details.useTarget(group: 'org.apache.groovy', name: details.requested.name, version: groovyVersion)
+ details.because "The dependency coordinates are changed in Apache Groovy 4, plus ensure version"
+ }
+ }
+ }
+}
diff --git a/docs/build.gradle b/docs/build.gradle
index 056cb922..3b92fed9 100644
--- a/docs/build.gradle
+++ b/docs/build.gradle
@@ -3,9 +3,9 @@ buildscript {
maven { url 'https://repo.grails.org/grails/core' }
}
dependencies {
- classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
- classpath 'org.asciidoctor:asciidoctorj-epub3:1.5.1'
- classpath 'org.asciidoctor:asciidoctorj-pdf:2.3.9'
+ classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.6.1'
+ classpath 'org.asciidoctor:asciidoctorj-epub3:2.1.3'
+ classpath 'org.asciidoctor:asciidoctorj-pdf:2.3.18'
}
}
diff --git a/examples/extended/build.gradle b/examples/extended/build.gradle
index 6c1998a3..9175bb2c 100644
--- a/examples/extended/build.gradle
+++ b/examples/extended/build.gradle
@@ -6,7 +6,7 @@ buildscript {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:hibernate5:${hibernateGormVersion}"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:${assetPipelineVersion}"
- classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0"
+ classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.7"
}
}
@@ -26,51 +26,50 @@ repositories {
}
dependencies {
- 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-web-boot"
- 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:cache"
- compile "org.grails.plugins:async"
- compile "org.grails.plugins:scaffolding"
- compile "org.grails.plugins:events"
- compile "org.grails.plugins:hibernate5"
- compile "org.hibernate:hibernate-core:$hibernateCoreVersion"
- compile "org.grails.plugins:gsp"
+ 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-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:events"
+ implementation "org.grails.plugins:hibernate5"
+ implementation "org.hibernate:hibernate-core:$hibernateCoreVersion"
+ implementation "org.grails.plugins:gsp"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
- runtime "org.glassfish.web:el-impl:2.1.2-b03"
- runtime "com.h2database:h2"
- runtime "org.apache.tomcat:tomcat-jdbc"
- //testCompile "org.grails:grails-test-mixins:3.3.0"
- runtime "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
- testCompile "org.grails:grails-gorm-testing-support"
- testCompile "org.grails:grails-web-testing-support"
- testCompile "org.grails.plugins:geb"
- testCompile "org.seleniumhq.selenium:selenium-remote-driver:3.14.0"
- testCompile "org.seleniumhq.selenium:selenium-api:3.14.0"
- testCompile "org.seleniumhq.selenium:selenium-support:3.14.0"
- testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:3.14.0"
- testRuntime "org.seleniumhq.selenium:selenium-firefox-driver:3.14.0"
+ runtimeOnly "com.h2database:h2"
+ runtimeOnly "org.apache.tomcat:tomcat-jdbc"
+ runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
+ testImplementation "org.grails:grails-gorm-testing-support"
+ testImplementation "org.grails:grails-web-testing-support"
+ testImplementation "org.grails.plugins:geb"
+ testImplementation "org.spockframework:spock-core"
+ testImplementation "org.seleniumhq.selenium:selenium-remote-driver:4.19.1"
+ testImplementation "org.seleniumhq.selenium:selenium-api:4.19.1"
+ testImplementation "org.seleniumhq.selenium:selenium-support:4.19.1"
+ testRuntimeOnly "org.seleniumhq.selenium:selenium-chrome-driver:4.19.1"
+ testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver:4.19.1"
- compile 'dumbster:dumbster:1.6', { transitive = false }
- compile "org.grails.plugins:mail:$mailVersion"
+ implementation "dumbster:dumbster:$dumbsterVersion", { transitive = false }
+ implementation "org.grails.plugins:mail:$mailVersion"
- compile("org.grails.plugins:spring-security-acl:4.0.0.M2") {
+ implementation("org.grails.plugins:spring-security-acl:$springSecurityAclVersion") {
exclude group: 'org.grails.plugins', module: 'spring-security-core'
}
- compile project(":spring-security-ui")
+ implementation project(":spring-security-ui")
}
webdriverBinaries {
diff --git a/examples/extended/grails-app/conf/logback.groovy b/examples/extended/grails-app/conf/logback.groovy
deleted file mode 100644
index 20f85e19..00000000
--- a/examples/extended/grails-app/conf/logback.groovy
+++ /dev/null
@@ -1,36 +0,0 @@
-import grails.util.BuildSettings
-import grails.util.Environment
-import org.springframework.boot.logging.logback.ColorConverter
-import org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter
-
-import java.nio.charset.Charset
-
-conversionRule 'clr', ColorConverter
-conversionRule 'wex', WhitespaceThrowableProxyConverter
-
-// See http://logback.qos.ch/manual/groovy.html for details on configuration
-appender('STDOUT', ConsoleAppender) {
- encoder(PatternLayoutEncoder) {
- charset = Charset.forName('UTF-8')
-
- pattern =
- '%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} ' + // Date
- '%clr(%5p) ' + // Log level
- '%clr(---){faint} %clr([%15.15t]){faint} ' + // Thread
- '%clr(%-40.40logger{39}){cyan} %clr(:){faint} ' + // Logger
- '%m%n%wex' // Message
- }
-}
-
-def targetDir = BuildSettings.TARGET_DIR
-if (Environment.isDevelopmentMode() && targetDir != null) {
- appender("FULL_STACKTRACE", FileAppender) {
- file = "${targetDir}/stacktrace.log"
- append = true
- encoder(PatternLayoutEncoder) {
- pattern = "%level %logger - %msg%n"
- }
- }
- logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false)
-}
-root(ERROR, ['STDOUT'])
diff --git a/examples/extended/grails-app/conf/logback.xml b/examples/extended/grails-app/conf/logback.xml
new file mode 100644
index 00000000..70b14848
--- /dev/null
+++ b/examples/extended/grails-app/conf/logback.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+ true
+
+ UTF-8
+ %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
+
+
+
+
+
+
+
+
diff --git a/examples/extended/grails-app/views/error.gsp b/examples/extended/grails-app/views/error.gsp
index 78bc6243..a966b3cc 100644
--- a/examples/extended/grails-app/views/error.gsp
+++ b/examples/extended/grails-app/views/error.gsp
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/examples/simple/build.gradle b/examples/simple/build.gradle
index e139ed31..1814caf5 100644
--- a/examples/simple/build.gradle
+++ b/examples/simple/build.gradle
@@ -4,9 +4,9 @@ buildscript {
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
- classpath "org.grails.plugins:hibernate5:${hibernateGormVersion}"
- classpath "com.bertramlabs.plugins:asset-pipeline-gradle:${assetPipelineVersion}"
- classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.0"
+ classpath "org.grails.plugins:hibernate5:$hibernateGormVersion"
+ classpath "com.bertramlabs.plugins:asset-pipeline-gradle:$assetPipelineVersion"
+ classpath "gradle.plugin.com.github.erdi.webdriver-binaries:webdriver-binaries-gradle-plugin:2.7"
}
}
@@ -26,46 +26,46 @@ repositories {
}
dependencies {
- 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-web-boot"
- 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:cache"
- compile "org.grails.plugins:async"
- compile "org.grails.plugins:scaffolding"
- compile "org.grails.plugins:events"
- compile "org.grails.plugins:hibernate5"
- compile "org.hibernate:hibernate-core:$hibernateCoreVersion"
- compile "org.grails.plugins:gsp"
+ 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-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:events"
+ implementation "org.grails.plugins:hibernate5"
+ implementation "org.hibernate:hibernate-core:$hibernateCoreVersion"
+ implementation "org.grails.plugins:gsp"
console "org.grails:grails-console"
profile "org.grails.profiles:web"
- runtime "org.glassfish.web:el-impl:2.1.2-b03"
- runtime "com.h2database:h2"
- runtime "org.apache.tomcat:tomcat-jdbc"
- runtime "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
- testCompile "org.grails:grails-gorm-testing-support"
- testCompile "org.grails:grails-web-testing-support"
- testCompile "org.grails.plugins:geb"
- testCompile "org.seleniumhq.selenium:selenium-remote-driver:3.14.0"
- testCompile "org.seleniumhq.selenium:selenium-api:3.14.0"
- testCompile "org.seleniumhq.selenium:selenium-support:3.14.0"
- testRuntime "org.seleniumhq.selenium:selenium-chrome-driver:3.14.0"
- testRuntime "org.seleniumhq.selenium:selenium-firefox-driver:3.14.0"
+ runtimeOnly "com.h2database:h2"
+ runtimeOnly "org.apache.tomcat:tomcat-jdbc"
+ runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
+ testImplementation "org.grails:grails-gorm-testing-support"
+ testImplementation "org.grails:grails-web-testing-support"
+ testImplementation "org.grails.plugins:geb"
+ testImplementation "org.spockframework:spock-core"
+ testImplementation "org.seleniumhq.selenium:selenium-remote-driver:4.19.1"
+ testImplementation "org.seleniumhq.selenium:selenium-api:4.19.1"
+ testImplementation "org.seleniumhq.selenium:selenium-support:4.19.1"
+ testRuntimeOnly "org.seleniumhq.selenium:selenium-chrome-driver:4.19.1"
+ testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver:4.19.1"
- compile 'dumbster:dumbster:1.6', { transitive = false }
- compile "org.grails.plugins:mail:$mailVersion"
+ implementation "dumbster:dumbster:$dumbsterVersion", { transitive = false }
+ implementation "org.grails.plugins:mail:$mailVersion"
- compile project(":spring-security-ui")
+ implementation project(":spring-security-ui")
}
webdriverBinaries {
@@ -73,12 +73,6 @@ webdriverBinaries {
geckodriver "${geckoDriverVersion}"
}
-bootRun {
- jvmArgs('-Dspring.output.ansi.enabled=always')
- sourceResources sourceSets.main
-}
-
-
assets {
minifyJs = true
minifyCss = true
@@ -92,4 +86,4 @@ tasks.withType(Test) {
systemProperty "webdriver.gecko.driver", System.getProperty('webdriver.gecko.driver')
}
-apply from: "${rootProject.projectDir}/gradle/integrationTestVerbose.gradle"
\ No newline at end of file
+apply from: "${rootProject.projectDir}/gradle/integrationTestVerbose.gradle"
diff --git a/examples/simple/grails-app/conf/logback.groovy b/examples/simple/grails-app/conf/logback.groovy
deleted file mode 100644
index 20f85e19..00000000
--- a/examples/simple/grails-app/conf/logback.groovy
+++ /dev/null
@@ -1,36 +0,0 @@
-import grails.util.BuildSettings
-import grails.util.Environment
-import org.springframework.boot.logging.logback.ColorConverter
-import org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter
-
-import java.nio.charset.Charset
-
-conversionRule 'clr', ColorConverter
-conversionRule 'wex', WhitespaceThrowableProxyConverter
-
-// See http://logback.qos.ch/manual/groovy.html for details on configuration
-appender('STDOUT', ConsoleAppender) {
- encoder(PatternLayoutEncoder) {
- charset = Charset.forName('UTF-8')
-
- pattern =
- '%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} ' + // Date
- '%clr(%5p) ' + // Log level
- '%clr(---){faint} %clr([%15.15t]){faint} ' + // Thread
- '%clr(%-40.40logger{39}){cyan} %clr(:){faint} ' + // Logger
- '%m%n%wex' // Message
- }
-}
-
-def targetDir = BuildSettings.TARGET_DIR
-if (Environment.isDevelopmentMode() && targetDir != null) {
- appender("FULL_STACKTRACE", FileAppender) {
- file = "${targetDir}/stacktrace.log"
- append = true
- encoder(PatternLayoutEncoder) {
- pattern = "%level %logger - %msg%n"
- }
- }
- logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false)
-}
-root(ERROR, ['STDOUT'])
diff --git a/examples/simple/grails-app/conf/logback.xml b/examples/simple/grails-app/conf/logback.xml
new file mode 100644
index 00000000..70b14848
--- /dev/null
+++ b/examples/simple/grails-app/conf/logback.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+ true
+
+ UTF-8
+ %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
+
+
+
+
+
+
+
+
diff --git a/examples/simple/grails-app/views/error.gsp b/examples/simple/grails-app/views/error.gsp
index 78bc6243..a966b3cc 100644
--- a/examples/simple/grails-app/views/error.gsp
+++ b/examples/simple/grails-app/views/error.gsp
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/gradle.properties b/gradle.properties
index dd0d9e29..0f5ef718 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -4,23 +4,24 @@ authors=Puneet Behl
projectDesc=Provides CRUD screens and other user management workflows.
projectUrl=https://github.com/grails/grails-spring-security-ui
githubSlug=grails-plugins/grails-spring-security-ui
-githubBranch=4.0.x
+githubBranch=5.0.x
developers=Puneet Behl
vcsUrl=https://github.com/grails/grails-spring-security-ui
websiteUrl=https://github.com/grails/grails-spring-security-ui
issueTrackerUrl=https://github.com/grails/grails-spring-security-ui/issues
-grailsVersion=4.1.2
-gormVersion=7.0.9
-hibernateGormVersion=7.0.6
-hibernateCoreVersion=5.4.10.Final
-assetPipelineVersion=3.4.7
+grailsVersion=7.0.0-SNAPSHOT
+gormVersion=9.0.0-SNAPSHOT
+hibernateGormVersion=9.0.0-SNAPSHOT
+hibernateCoreVersion=5.6.15.Final
+assetPipelineVersion=5.0.1
dumbsterVersion=1.6
-mailVersion=2.0.0
-springSecurityAclVersion=5.1.2.RELEASE
-chromeDriverVersion=2.45.0
-geckoDriverVersion=0.24.0
-springSecurityCoreVersion=4.0.5
-springSecurityVersion=5.1.2.RELEASE
+mailVersion=4.0.0
+springSecurityAclVersion=5.0.0-SNAPSHOT
+chromeDriverVersion=2.46.0
+geckoDriverVersion=0.29.1
+springSecurityCoreVersion=7.0.0-SNAPSHOT
+springSecurityVersion=6.3.3
org.gradle.daemon=true
org.gradle.parallel=false
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
+groovyVersion=4.0.23
diff --git a/gradle/integrationTestVerbose.gradle b/gradle/integrationTestVerbose.gradle
index 3b7a2b6d..70974c5a 100644
--- a/gradle/integrationTestVerbose.gradle
+++ b/gradle/integrationTestVerbose.gradle
@@ -1,4 +1,5 @@
tasks.withType(Test) {
+ useJUnitPlatform()
afterTest { desc, result ->
logger.quiet " -- Executed test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
diff --git a/gradle/testVerbose.gradle b/gradle/testVerbose.gradle
index 6dd6969a..9f86f597 100644
--- a/gradle/testVerbose.gradle
+++ b/gradle/testVerbose.gradle
@@ -1,4 +1,5 @@
test {
+ useJUnitPlatform()
afterTest { desc, result ->
logger.quiet " -- Executed test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 87b738cb..a4b76b95 100644
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 5028f28f..df97d72b 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
+networkTimeout=10000
+validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index af6708ff..f5feea6d 100755
--- a/gradlew
+++ b/gradlew
@@ -1,78 +1,130 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
##############################################################################
-##
-## Gradle start up script for UN*X
-##
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
##############################################################################
# Attempt to set APP_HOME
+
# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m"'
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
+' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
+MAX_FD=maximum
warn () {
echo "$*"
-}
+} >&2
die () {
echo
echo "$*"
echo
exit 1
-}
+} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
- NONSTOP* )
- nonstop=true
- ;;
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACMD=$JAVA_HOME/jre/sh/java
else
- JAVACMD="$JAVA_HOME/bin/java"
+ JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@@ -81,92 +133,120 @@ Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
+ fi
fi
# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
fi
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
- JAVACMD=`cygpath --unix "$JAVACMD"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
fi
- i=$((i+1))
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
fi
-# Escape application args
-save () {
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
- echo " "
-}
-APP_ARGS=$(save "$@")
-
-# Collect all arguments for the java command, following the shell quoting and substitution rules
-eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
-# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
-if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
- cd "$(dirname "$0")"
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
fi
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
old mode 100755
new mode 100644
index 6d57edc7..9b42019c
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -1,84 +1,94 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-Xmx64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windows variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+@rem SPDX-License-Identifier: Apache-2.0
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/grails-wrapper.jar b/grails-wrapper.jar
deleted file mode 100644
index 6b6da64f..00000000
Binary files a/grails-wrapper.jar and /dev/null differ
diff --git a/grailsw b/grailsw
deleted file mode 100755
index c2c921c2..00000000
--- a/grailsw
+++ /dev/null
@@ -1,151 +0,0 @@
-#!/usr/bin/env bash
-
-##############################################################################
-##
-## Grails start up script for UN*X
-##
-##############################################################################
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRAILS_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-XX:+TieredCompilation" "-XX:TieredStopAtLevel=1" "-XX:CICompilerCount=3"'
-
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn ( ) {
- echo "$*"
-}
-
-die ( ) {
- echo
- echo "$*"
- echo
- exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
-esac
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-JAR_PATH=$APP_HOME/grails-wrapper.jar
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- JAVACMD=`cygpath --unix "$JAVACMD"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRAILS_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRAILS_CYGPATTERN)"
- fi
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
- fi
- i=$((i+1))
- done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
-fi
-
-# Split up the JVM_OPTS And GRAILS_OPTS values into an array, following the shell quoting and substitution rules
-function splitJvmOpts() {
- JVM_OPTS=("$@")
-}
-eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRAILS_OPTS
-
-exec "$JAVACMD" -jar "${JVM_OPTS[@]}" "$JAR_PATH" "$@"
diff --git a/grailsw.bat b/grailsw.bat
deleted file mode 100755
index c48c3840..00000000
--- a/grailsw.bat
+++ /dev/null
@@ -1,89 +0,0 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Grails startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRAILS_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-XX:+TieredCompilation" "-XX:TieredStopAtLevel=1" "-XX:CICompilerCount=3"
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windowz variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-if "%@eval[2+2]" == "4" goto 4NT_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-goto execute
-
-:4NT_args
-@rem Get arguments from the 4NT Shell from JP Software
-set CMD_LINE_ARGS=%$
-
-:execute
-@rem Setup the command line
-set JAR_PATH=%APP_HOME%/grails-wrapper.jar
-
-@rem Execute Grails
-"%JAVA_EXE%" -jar %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRAILS_OPTS% %JAR_PATH% %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRAILS_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRAILS_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/plugin/build.gradle b/plugin/build.gradle
index ce790966..b583d4de 100644
--- a/plugin/build.gradle
+++ b/plugin/build.gradle
@@ -18,6 +18,7 @@ apply plugin: "com.bertramlabs.asset-pipeline"
apply plugin: "org.grails.grails-gsp"
apply plugin: 'maven-publish'
apply plugin: 'signing'
+apply plugin: 'java-library'
ext."signing.keyId" = project.hasProperty("signing.keyId") ? project.getProperty('signing.keyId') : System.getenv('SIGNING_KEY')
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : "${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg"
@@ -55,37 +56,41 @@ repositories {
maven { url "https://repo.grails.org/grails/core" }
}
+configurations {
+ all {
+ exclude group: 'javax.servlet'
+ }
+}
+
dependencies {
- 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-web-boot"
- 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:cache"
- compile "org.grails.plugins:gsp"
+ 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-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:gsp"
console "org.grails:grails-console"
profile "org.grails.profiles:web-plugin"
compileOnly "org.grails:grails-plugin-services"
compileOnly "org.grails:grails-plugin-domain-class"
- runtime "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
- compile "org.grails.plugins:spring-security-core:$springSecurityCoreVersion"
- testCompile "org.grails:grails-gorm-testing-support"
- testCompile "org.grails:grails-web-testing-support"
- compile "org.springframework.security:spring-security-core:$springSecurityVersion", {
+ runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails:$assetPipelineVersion"
+ api "org.grails.plugins:spring-security-core:$springSecurityCoreVersion"
+ testCompileOnly "org.grails:grails-gorm-testing-support"
+ testCompileOnly "org.grails:grails-web-testing-support"
+ implementation "org.springframework.security:spring-security-core:$springSecurityVersion", {
['spring-aop', 'spring-beans', 'spring-context', 'spring-core', 'spring-expression'].each {
exclude module: it
}
}
-
-
}
apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"
diff --git a/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiGrailsPlugin.groovy b/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiGrailsPlugin.groovy
index 15eb9cf0..7ca178af 100644
--- a/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiGrailsPlugin.groovy
+++ b/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiGrailsPlugin.groovy
@@ -34,7 +34,7 @@ import groovy.util.logging.Slf4j
@Slf4j
class SpringSecurityUiGrailsPlugin extends Plugin {
- String grailsVersion = '3.0.0 > *'
+ String grailsVersion = '7.0.0 > *'
String author = 'Burt Beckwith'
String authorEmail = 'burt@burtbeckwith.com'
String title = 'Spring Security UI plugin'
diff --git a/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiInterceptor.groovy b/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiInterceptor.groovy
index d51dc1a0..fee04257 100644
--- a/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiInterceptor.groovy
+++ b/plugin/src/main/groovy/grails/plugin/springsecurity/ui/SpringSecurityUiInterceptor.groovy
@@ -21,8 +21,8 @@ import groovy.transform.CompileStatic
import org.springframework.web.servlet.HandlerInterceptor
import org.springframework.web.servlet.ModelAndView
-import javax.servlet.http.HttpServletRequest
-import javax.servlet.http.HttpServletResponse
+import jakarta.servlet.http.HttpServletRequest
+import jakarta.servlet.http.HttpServletResponse
/**
* @author Burt Beckwith