Skip to content

Commit

Permalink
Grails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Oct 4, 2024
1 parent 8d4e13f commit 5c70dff
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 37 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches:
- '[4-9]+.[0-9]+.x'
env:
GIT_USER_NAME: puneetbehl
GIT_USER_EMAIL: [email protected]
GIT_USER_NAME: grails-build
GIT_USER_EMAIL: [email protected]

jobs:

Expand All @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: true
matrix:
java: [11, 17]
java: [17]

steps:
- uses: actions/checkout@v4
Expand All @@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with: { java-version: 11, distribution: temurin }
with: { java-version: 17, distribution: temurin }
- uses: gradle/actions/setup-gradle@v3

- name: Build Project
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dependencies {
testImplementation libs.grails.testing.support.core
testImplementation libs.spock.core

integrationTestImplementation libs.groovy.xml
integrationTestImplementation libs.greenmail
integrationTestImplementation libs.spring.web

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion=4.0.1-SNAPSHOT
projectVersion=5.0.0-SNAPSHOT

# This prevents the Grails Gradle Plugin from unnecessarily excluding slf4j-simple in the generated POMs
# https://github.com/grails/grails-gradle-plugin/issues/222
Expand Down
2 changes: 1 addition & 1 deletion gradle/buildsrc.libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
grails-gradle-plugin = '6.2.0'
grails-gradle-plugin = '7.0.0-SNAPSHOT'
nexus-publish-gradle-plugin = '1.3.0'

[libraries]
Expand Down
2 changes: 1 addition & 1 deletion gradle/java-config.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
java {
sourceCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
}
27 changes: 14 additions & 13 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[versions]
grails = '6.2.0'
grails-testing-support = '3.2.1'
greenmail = '1.6.15'
groovy = '3.0.21'
gsp = '6.2.1'
javamail = '1.6.2'
grails = '7.0.0-SNAPSHOT'
grails-testing-support = '4.0.0-SNAPSHOT'
greenmail = '2.0.1'
groovy = '4.0.23'
gsp = '7.0.0-SNAPSHOT'
javamail = '2.0.1'
slf4j = '1.7.36'
spring = '5.3.34'
springboot = '2.7.18'
spock = '2.3-groovy-3.0'
spring = '6.1.13'
springboot = '3.3.4'
spock = '2.3-groovy-4.0'

[libraries]
grails-core = { module = 'org.grails:grails-core', version.ref = 'grails' }
Expand All @@ -18,11 +18,12 @@ grails-testing-support-web = { module = 'org.grails:grails-web-testing-support',
grails-web-common = { module = 'org.grails:grails-web-common', version.ref = 'grails' }
grails-web-urlmappings = { module = 'org.grails:grails-web-url-mappings', version.ref = 'grails' }
greenmail = { module = 'com.icegreen:greenmail', version.ref = 'greenmail' }
groovy-core = { module = 'org.codehaus.groovy:groovy', version.ref = 'groovy' }
groovy-core = { module = 'org.apache.groovy:groovy', version.ref = 'groovy' }
grails-docs = { module = 'org.grails:grails-docs', version.ref = 'grails' }
groovy-templates = { module = 'org.codehaus.groovy:groovy-templates', version.ref = 'groovy' }
javamail-api = { module = 'javax.mail:javax.mail-api', version.ref = 'javamail' }
javamail-impl = { module = 'com.sun.mail:javax.mail', version.ref = 'javamail' }
groovy-templates = { module = 'org.apache.groovy:groovy-templates', version.ref = 'groovy' }
groovy-xml = { module = 'org.apache.groovy:groovy-xml', version.ref = 'groovy' }
javamail-api = { module = 'jakarta.mail:jakarta.mail-api', version.ref = 'javamail' }
javamail-impl = { module = 'com.sun.mail:jakarta.mail', version.ref = 'javamail' }
slf4j-nop = { module = 'org.slf4j:slf4j-nop', version.ref = 'slf4j' }
spring-beans = { module = 'org.springframework:spring-beans', version.ref = 'spring' }
spring-context = { module = 'org.springframework:spring-context', version.ref = 'spring' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package grails.plugins.mail
import com.icegreen.greenmail.util.GreenMail
import com.icegreen.greenmail.util.ServerSetupTest
import grails.testing.mixin.integration.Integration
import groovy.xml.XmlSlurper
import org.grails.io.support.ClassPathResource
import org.springframework.core.io.FileSystemResource
import org.springframework.mail.MailMessage
Expand All @@ -32,10 +33,10 @@ import spock.lang.Ignore
import spock.lang.Shared
import spock.lang.Specification

import javax.mail.Message
import javax.mail.internet.MimeBodyPart
import javax.mail.internet.MimeMessage
import javax.mail.internet.MimeMultipart
import jakarta.mail.Message
import jakarta.mail.internet.MimeBodyPart
import jakarta.mail.internet.MimeMessage
import jakarta.mail.internet.MimeMultipart

@Integration
class MailServiceSpec extends Specification {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import org.springframework.jndi.JndiObjectFactoryBean
import org.springframework.mail.MailSender
import org.springframework.mail.javamail.JavaMailSenderImpl

import javax.mail.Session
import jakarta.mail.Session

@Configuration
@CompileStatic
Expand Down
6 changes: 3 additions & 3 deletions src/main/groovy/grails/plugins/mail/MailMessageBuilder.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import org.springframework.mail.javamail.MimeMessageHelper
import org.springframework.util.Assert
import org.springframework.util.StringUtils

import javax.mail.Message
import javax.mail.internet.MimeMessage
import javax.mail.internet.MimeUtility
import jakarta.mail.Message
import jakarta.mail.internet.MimeMessage
import jakarta.mail.internet.MimeUtility
import java.util.concurrent.ExecutorService

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import org.springframework.web.servlet.DispatcherServlet
import org.springframework.web.servlet.i18n.FixedLocaleResolver
import org.springframework.web.servlet.support.RequestContextUtils

import javax.servlet.http.Cookie
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
import jakarta.servlet.http.Cookie
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
import java.lang.reflect.Proxy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import org.springframework.web.context.support.ServletContextResource
import spock.lang.Issue
import spock.lang.Specification

import javax.mail.Message
import javax.mail.Session
import javax.mail.internet.MimeMessage
import javax.mail.internet.MimeMultipart
import javax.mail.internet.MimeUtility
import javax.servlet.ServletContext
import jakarta.mail.Message
import jakarta.mail.Session
import jakarta.mail.internet.MimeMessage
import jakarta.mail.internet.MimeMultipart
import jakarta.mail.internet.MimeUtility
import jakarta.servlet.ServletContext

/**
* Test case for {@link MailMessageBuilder}.
Expand Down

0 comments on commit 5c70dff

Please sign in to comment.