1
1
plugins {
2
- id ' io.spring.nohttp' version ' 0.0.11'
3
- id ' io.freefair.aspectj' version ' 6.5.0.3' apply false
2
+ id ' io.freefair.aspectj' version ' 8.0.1' apply false
4
3
// kotlinVersion is managed in gradle.properties
5
4
id ' org.jetbrains.kotlin.plugin.serialization' version " ${ kotlinVersion} " apply false
6
- id ' org.jetbrains.dokka' version ' 1.7.20 '
5
+ id ' org.jetbrains.dokka' version ' 1.8.10 '
7
6
id ' org.asciidoctor.jvm.convert' version ' 3.3.2' apply false
8
7
id ' org.asciidoctor.jvm.pdf' version ' 3.3.2' apply false
9
8
id ' org.unbroken-dome.xjc' version ' 2.0.0' apply false
10
- id ' com.github.ben-manes.versions' version ' 0.42.0'
11
- id ' com.github.johnrengelman.shadow' version ' 7.1.2' apply false
12
- id ' de.undercouch.download' version ' 5.1.0'
13
- id ' me.champeau.jmh' version ' 0.6.8' apply false
9
+ id ' com.github.ben-manes.versions' version ' 0.46.0'
10
+ id ' com.github.johnrengelman.shadow' version ' 8.1.1' apply false
11
+ id ' de.undercouch.download' version ' 5.4.0'
12
+ id ' me.champeau.jmh' version ' 0.7.0' apply false
13
+ id ' me.champeau.mrjar' version ' 0.1.1'
14
14
}
15
15
16
16
ext {
@@ -49,7 +49,6 @@ configure([rootProject] + javaProjects) { project ->
49
49
50
50
apply plugin : " java"
51
51
apply plugin : " java-test-fixtures"
52
- apply plugin : " checkstyle"
53
52
apply plugin : ' org.springframework.build.conventions'
54
53
apply from : " ${ rootDir} /gradle/toolchains.gradle"
55
54
apply from : " ${ rootDir} /gradle/ide.gradle"
@@ -63,33 +62,6 @@ configure([rootProject] + javaProjects) { project ->
63
62
matching { it. name. endsWith(" Classpath" ) }. all { it. extendsFrom(dependencyManagement) }
64
63
}
65
64
66
- test {
67
- useJUnitPlatform()
68
- include([" **/*Tests.class" , " **/*Test.class" ])
69
- systemProperty(" java.awt.headless" , " true" )
70
- systemProperty(" testGroups" , project. properties. get(" testGroups" ))
71
- systemProperty(" io.netty.leakDetection.level" , " paranoid" )
72
- systemProperty(" io.netty5.leakDetectionLevel" , " paranoid" )
73
- systemProperty(" io.netty5.leakDetection.targetRecords" , " 32" )
74
- systemProperty(" io.netty5.buffer.lifecycleTracingEnabled" , " true" )
75
- systemProperty(" io.netty5.buffer.leakDetectionEnabled" , " true" )
76
- jvmArgs([" --add-opens=java.base/java.lang=ALL-UNNAMED" ,
77
- " --add-opens=java.base/java.util=ALL-UNNAMED" ])
78
- }
79
-
80
- checkstyle {
81
- toolVersion = " 10.9.1"
82
- configDirectory. set(rootProject. file(" src/checkstyle" ))
83
- }
84
-
85
- tasks. named(" checkstyleMain" ). configure {
86
- maxHeapSize = " 1g"
87
- }
88
-
89
- tasks. named(" checkstyleTest" ). configure {
90
- maxHeapSize = " 1g"
91
- }
92
-
93
65
dependencies {
94
66
dependencyManagement(enforcedPlatform(dependencies. project(path : " :framework-platform" )))
95
67
testImplementation(" org.junit.jupiter:junit-jupiter-api" )
@@ -105,20 +77,19 @@ configure([rootProject] + javaProjects) { project ->
105
77
testRuntimeOnly(" org.junit.platform:junit-platform-suite-engine" )
106
78
testRuntimeOnly(" org.apache.logging.log4j:log4j-core" )
107
79
testRuntimeOnly(" org.apache.logging.log4j:log4j-jul" )
108
- testRuntimeOnly(" org.apache.logging.log4j:log4j-slf4j -impl" )
80
+ testRuntimeOnly(" org.apache.logging.log4j:log4j-slf4j2 -impl" )
109
81
// JSR-305 only used for non-required meta-annotations
110
82
compileOnly(" com.google.code.findbugs:jsr305" )
111
83
testCompileOnly(" com.google.code.findbugs:jsr305" )
112
- checkstyle(" io.spring.javaformat:spring-javaformat-checkstyle:0.0.31" )
113
84
}
114
85
115
86
ext. javadocLinks = [
116
87
" https://docs.oracle.com/en/java/javase/17/docs/api/" ,
117
88
" https://jakarta.ee/specifications/platform/9/apidocs/" ,
118
- " https://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/" , // CommonJ
119
- " https://www.ibm.com/docs/api/v1/content/SSEQTP_8.5.5/com.ibm.websphere.javadoc.doc/web/apidocs/" ,
120
- " https://docs.jboss.org/jbossas/javadoc/4.0.5/connector/" ,
121
- " https://docs.jboss.org/jbossas/javadoc/7.1.2.Final /" ,
89
+ " https://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/" , // CommonJ and weblogic.* packages
90
+ " https://www.ibm.com/docs/api/v1/content/SSEQTP_8.5.5/com.ibm.websphere.javadoc.doc/web/apidocs/" , // com.ibm.*
91
+ " https://docs.jboss.org/jbossas/javadoc/4.0.5/connector/" , // org.jboss.resource.*
92
+ " https://docs.jboss.org/hibernate/orm/5.6/javadocs /" ,
122
93
" https://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/" ,
123
94
" https://www.quartz-scheduler.org/api/2.3.0/" ,
124
95
" https://www.javadoc.io/doc/com.fasterxml.jackson.core/jackson-core/2.14.1/" ,
@@ -130,15 +101,13 @@ configure([rootProject] + javaProjects) { project ->
130
101
// TODO Uncomment link to JUnit 5 docs once we execute Gradle with Java 18+.
131
102
// See https://github.com/spring-projects/spring-framework/issues/27497
132
103
//
133
- // "https://junit.org/junit5/docs/5.9.2 /api/",
104
+ // "https://junit.org/junit5/docs/5.9.3 /api/",
134
105
" https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/" ,
135
106
" https://javadoc.io/static/io.rsocket/rsocket-core/1.1.1/" ,
136
107
" https://r2dbc.io/spec/1.0.0.RELEASE/api/" ,
137
- // The external Javadoc link for JSR 305 must come last to ensure that types from
138
- // JSR 250 (such as @PostConstruct) are still supported. This is due to the fact
139
- // that JSR 250 and JSR 305 both define types in javax.annotation, which results
140
- // in a split package, and the javadoc tool does not support split packages
141
- // across multiple external Javadoc sites.
108
+ // Previously there could be a split-package issue between JSR250 and JSR305 javax.annotation packages,
109
+ // but since 6.0 JSR 250 annotations such as @Resource and @PostConstruct have been replaced by their
110
+ // JakartaEE equivalents in the jakarta.annotation package.
142
111
" https://www.javadoc.io/doc/com.google.code.findbugs/jsr305/3.0.2/"
143
112
] as String []
144
113
}
@@ -149,27 +118,5 @@ configure(moduleProjects) { project ->
149
118
150
119
configure(rootProject) {
151
120
description = " Spring Framework"
152
-
153
- apply plugin : " io.spring.nohttp"
154
121
apply plugin : ' org.springframework.build.api-diff'
155
-
156
- nohttp {
157
- source. exclude " **/test-output/**"
158
- allowlistFile = project. file(" src/nohttp/allowlist.lines" )
159
- def rootPath = file(rootDir). toPath()
160
- def projectDirs = allprojects. collect { it. projectDir } + " ${ rootDir} /buildSrc"
161
- projectDirs. forEach { dir ->
162
- [ ' bin' , ' build' , ' out' , ' .settings' ]
163
- .collect { rootPath. relativize(new File (dir, it). toPath()) }
164
- .forEach { source. exclude " $it /**" }
165
- [ ' .classpath' , ' .project' ]
166
- .collect { rootPath. relativize(new File (dir, it). toPath()) }
167
- .forEach { source. exclude " $it " }
168
- }
169
- }
170
-
171
- tasks. named(" checkstyleNohttp" ). configure {
172
- maxHeapSize = " 1g"
173
- }
174
-
175
122
}
0 commit comments