@@ -8,89 +8,33 @@ apply plugin: 'org.apache.grails.gradle.grails-publish'
88
99repositories {
1010 mavenCentral()
11- maven { url = ' https://repo.grails.org/grails/core' }
12- maven { url = ' https://repository.apache.org/content/repositories/snapshots' }
11+ maven { url = ' https://repo.grails.org/grails/restricted' }
12+ maven {
13+ url = ' https://repository.apache.org/content/groups/snapshots'
14+ content {
15+ includeVersionByRegex(' org[.]apache[.](grails|groovy).*' , ' .*' , ' .*-SNAPSHOT' )
16+ }
17+ }
1318}
1419
1520dependencies {
1621
17- implementation(platform(" org.apache.grails:grails-bom:$grailsVersion " ))
18-
19- api ' org.apache.grails:grails-gsp' , {
20- // api: GroovyPageTemplate, GroovyPagesTemplateEngine
21- }
22- api ' org.apache.grails.web:grails-web-common' , {
23- // api: GroovyPagesUriService
24- // impl: GrailsWebRequest, WrappedResponseHolder
25- }
26- api ' org.springframework:spring-beans' , {
27- // api: DisposableBean, InitializingBean
28- // impl: @Autowired(runtime), @Qualifier(runtime)
29- }
30- api ' org.springframework:spring-context' , {
31- // api: ApplicationContext, JndiObjectFactoryBean
32- // impl: @Bean(runtime)
33- }
34- api ' org.springframework:spring-context-support' , {
35- // api: JavaMailSender, MailMessage, MailSender, SimpleMailMessage
36- // impl: JavaMailSenderImpl, MimeMailMessage, MimeMessageHelper
37- }
38- api ' org.springframework:spring-core' , {
39- // api: InputStreamSource
40- // impl: Assert, ByteArrayResource, FileSystemResource, PropertiesPropertySource, StringUtils
41- }
22+ compileOnly platform(" org.apache.grails:grails-bom:$grailsVersion " )
23+ compileOnly ' org.apache.grails:grails-dependencies-starter-web'
4224
43- implementation ' org.apache.grails.views:grails-web-taglib' , {
44- // for taglib support
45- }
46- implementation ' org.apache.grails.web:grails-web-url-mappings' , {
47- // impl: LinkGenerator
48- }
49- implementation ' org.apache.groovy:groovy-templates' , {
50- // impl: Template
51- }
52- implementation ' org.eclipse.angus:jakarta.mail' , {
25+ // avoid pulling the bom in to set this version, instead use a property
26+ implementation " org.eclipse.angus:jakarta.mail:$jakartaMailImplVersion " , {
5327 // impl: SMTPMessage
5428 }
55- implementation ' org.springframework:spring-web' , {
56- // impl: RequestContextHolder
57- }
58- implementation ' org.springframework:spring-webmvc' , {
59- // impl: DispatcherServlet, FixedLocaleResolver, RequestContextUtils
60- }
61- implementation ' org.springframework.boot:spring-boot' , {
62- // impl: Bindable, Binder, @ConfigurationProperties, ConfigurationPropertySources,
63- // @EnableConfigurationProperties(runtime)
64- }
65- implementation ' org.springframework.boot:spring-boot-autoconfigure' , {
66- // impl: @AutoConfiguration(runtime), @ConditionalOnMissingBean(runtime), @ConditionalOnProperty(runtime)
67- }
6829
6930 compileOnlyApi ' jakarta.mail:jakarta.mail-api' , {
7031 // api: Message, Session
7132 // impl: MimeMessage, MimeUtility
7233 }
7334
74- compileOnly ' jakarta.inject:jakarta.inject-api' , { // Used by Spring DI
75- // impl: @Inject(runtime)
76- }
77- compileOnly ' jakarta.servlet:jakarta.servlet-api' , { // Provided by the servlet container
78- // impl: Cookie, HttpServletResponse, HttpServletRequest
79- }
80- compileOnly ' org.apache.grails:grails-core' , { // Provided as this is a Grails plugin
81- // api: Config, GrailsApplication, GrailsPluginManager, Plugin
82- // impl: @Artefact(runtime), @Enhances(runtime)
83- }
84- compileOnly ' org.apache.groovy:groovy' // Provided as this is a Grails plugin
85-
86- testImplementation ' jakarta.servlet:jakarta.servlet-api' , {
87- // impl: ServletContext
88- }
89- testImplementation ' org.apache.grails.testing:grails-testing-support-core' , {
90- // impl: GrailsUnitTest
91- }
92- testImplementation ' org.spockframework:spock-core'
93-
35+ testImplementation platform(" org.apache.grails:grails-bom:$grailsVersion " )
36+ testImplementation ' org.apache.grails:grails-dependencies-starter-web'
37+ testImplementation ' org.apache.grails:grails-dependencies-test'
9438 testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
9539}
9640
@@ -123,3 +67,7 @@ tasks.withType(Test).configureEach {
12367compileJava. options. release = javaVersion. toInteger()
12468
12569apply from : layout. projectDirectory. file(' gradle/docs-config.gradle' )
70+
71+ grails {
72+ springDependencyManagement = false
73+ }
0 commit comments