Skip to content

Commit d752db8

Browse files
committed
Update to Gradle 7.3.3
Issue gh-610 Closes gh-613
1 parent f3518ff commit d752db8

File tree

221 files changed

+10077
-2323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+10077
-2323
lines changed

Diff for: build.gradle

-207
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ buildscript {
1313
}
1414
dependencies {
1515
classpath "com.github.ben-manes:gradle-versions-plugin:0.17.0"
16-
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.7")
1716
classpath('org.asciidoctor:asciidoctor-gradle-plugin:1.5.1')
1817
classpath("io.spring.gradle:spring-io-plugin:0.0.6.RELEASE")
1918
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.12.0"
@@ -22,210 +21,4 @@ buildscript {
2221
}
2322
}
2423

25-
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
26-
27-
ext.GRADLE_SCRIPT_DIR = "${rootProject.projectDir}/gradle"
28-
apply from: "${GRADLE_SCRIPT_DIR}/finalize-deploy.gradle"
29-
ext.JAVA_MODULE_SCRIPT = "${GRADLE_SCRIPT_DIR}/java-module.gradle"
30-
ext.MAVEN_DEPLOYMENT_SCRIPT = "${GRADLE_SCRIPT_DIR}/maven-deployment.gradle"
31-
ext.JAVA_SCRIPT = "${GRADLE_SCRIPT_DIR}/java.gradle"
32-
ext.RELEASE_CHECKS_SCRIPT = "${GRADLE_SCRIPT_DIR}/release-checks.gradle"
33-
ext.SPRING_SNAPSHOT_TEST_SCRIPT = "${GRADLE_SCRIPT_DIR}/spring-snapshot-test.gradle"
34-
35-
ext.coreModules = subprojects.findAll { p-> (!p.name.equals('spring-build-src') && !p.name.contains("test") && !p.name.contains("sample") && !p.name.contains("sandbox")) || p.name.contains("spring-ldap-test") }
36-
37-
allprojects {
38-
apply plugin: 'idea'
39-
apply plugin: 'eclipse'
40-
apply plugin: 'java'
41-
apply plugin: "com.github.ben-manes.versions"
42-
43-
group = "org.springframework.ldap"
44-
45-
ext.releaseBuild = version.endsWith('RELEASE')
46-
ext.snapshotBuild = version.endsWith('SNAPSHOT')
47-
48-
ext.javadocLinks = [
49-
"https://docs.oracle.com/javase/7/docs/api/",
50-
"https://docs.spring.io/spring/docs/3.2.x/javadoc-api/",
51-
"https://logging.apache.org/log4j/1.2/apidocs/",
52-
"https://commons.apache.org/proper/commons-logging/apidocs/",
53-
"https://commons.apache.org/proper/commons-dbcp/apidocs/",
54-
"https://commons.apache.org/proper/commons-pool/apidocs/",
55-
"http://junit.sourceforge.net/javadoc/",
56-
] as String[]
57-
}
58-
59-
60-
configure(subprojects) {
61-
apply plugin: 'propdeps'
62-
apply plugin: 'propdeps-maven'
63-
apply plugin: 'propdeps-idea'
64-
apply plugin: 'propdeps-eclipse'
65-
apply plugin: 'groovy'
66-
apply plugin: "merge"
67-
}
68-
69-
configure(coreModules) {
70-
apply from: JAVA_MODULE_SCRIPT
71-
}
72-
73-
configure(subprojects - coreModules) {
74-
tasks.findByPath("artifactoryPublish")?.enabled = false
75-
tasks.findByPath("uploadArchives")?.enabled = false
76-
}
77-
7824
description = "Spring LDAP"
79-
80-
configurations.archives.artifacts.clear()
81-
apply from: "${GRADLE_SCRIPT_DIR}/deploy-docs.gradle"
82-
apply from: "${GRADLE_SCRIPT_DIR}/deploy-schema.gradle"
83-
84-
asciidoctor {
85-
outputDir = new File("$buildDir/docs")
86-
options = [
87-
eruby: 'erubis',
88-
attributes: [
89-
copycss : '',
90-
icons : 'font',
91-
'source-highlighter': 'prettify',
92-
sectanchors : '',
93-
toc2: '',
94-
idprefix: '',
95-
idseparator: '-',
96-
doctype: 'book',
97-
numbered: '',
98-
'spring-ldap-version' : project.version,
99-
revnumber : project.version
100-
]
101-
]
102-
}
103-
104-
task api(type: Javadoc) {
105-
group = "Documentation"
106-
description = "Generates aggregated Javadoc API documentation."
107-
title = "${rootProject.description} ${version} API"
108-
109-
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
110-
options.author = true
111-
options.header = rootProject.description
112-
options.splitIndex = true
113-
options.links(project.ext.javadocLinks)
114-
115-
maxMemory = "1536m"
116-
destinationDir = new File(buildDir, "api")
117-
118-
source coreModules*.javadoc*.source
119-
classpath = files(coreModules*.javadoc*.classpath)
120-
}
121-
122-
task docsZip(type: Zip, dependsOn: asciidoctor) {
123-
group = "Distribution"
124-
baseName = "spring-ldap"
125-
classifier = "docs"
126-
description = "Builds -${classifier} archive containing api and reference " +
127-
"for deployment at https://docs.spring.io/spring-ldap/docs."
128-
129-
from("src/dist") {
130-
include "changelog.txt"
131-
}
132-
133-
from (api) {
134-
into "apidocs"
135-
}
136-
137-
from (new File(asciidoctor.outputDir, "html5")) {
138-
include "*.html"
139-
into "reference"
140-
}
141-
}
142-
143-
task schemaZip(type: Zip) {
144-
group = 'Distribution'
145-
baseName = rootProject.name
146-
classifier = 'schema'
147-
description = "Builds -${classifier} archive containing all " +
148-
"XSDs for deployment at static.springframework.org/schema."
149-
150-
coreModules.each { module ->
151-
def Properties schemas = new Properties();
152-
153-
module.sourceSets.main.resources.find {
154-
it.path.endsWith('META-INF/spring.schemas')
155-
}?.withInputStream { schemas.load(it) }
156-
157-
for (def key : schemas.keySet()) {
158-
def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1')
159-
assert shortName != key
160-
File xsdFile = module.sourceSets.main.resources.find {
161-
it.path.endsWith(schemas.get(key))
162-
}
163-
assert xsdFile != null
164-
into (shortName) {
165-
duplicatesStrategy 'exclude'
166-
from xsdFile.path
167-
}
168-
}
169-
}
170-
}
171-
172-
173-
task distZip(type: Zip, dependsOn: [docsZip]) {
174-
dependsOn subprojects*.tasks*.matching { task -> task.name == 'assemble' }
175-
176-
group = "Distribution"
177-
baseName = "spring-ldap"
178-
classifier = "dist"
179-
description = "Builds -${classifier} archive, containing all jars and docs, " +
180-
"suitable for community download page."
181-
182-
ext.baseDir = "${baseName}-${project.version}"
183-
184-
185-
from("src/dist") {
186-
include "readme.md"
187-
include "license.txt"
188-
include "notice.txt"
189-
into "${baseDir}"
190-
expand(copyright: new Date().format("yyyy"), version: project.version)
191-
}
192-
193-
from(zipTree(docsZip.archivePath)) {
194-
into "${baseDir}/docs"
195-
}
196-
197-
coreModules.each { subproject ->
198-
into ("${baseDir}/libs") {
199-
from subproject.jar
200-
if (subproject.tasks.findByPath("sourcesJar")) {
201-
from subproject.sourcesJar
202-
}
203-
if (subproject.tasks.findByPath("javadocJar")) {
204-
from subproject.javadocJar
205-
}
206-
}
207-
}
208-
}
209-
210-
artifacts {
211-
archives docsZip
212-
archives distZip
213-
archives schemaZip
214-
}
215-
216-
217-
if (project.hasProperty('artifactoryUsername')) {
218-
allprojects { project ->
219-
project.repositories { repos ->
220-
all { repo ->
221-
if (!repo.url.toString().startsWith("https://repo.spring.io/")) {
222-
return;
223-
}
224-
repo.credentials {
225-
username = artifactoryUsername
226-
password = artifactoryPassword
227-
}
228-
}
229-
}
230-
}
231-
}

Diff for: buildSrc/build.gradle

+113-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,117 @@
1-
description = "Exposes gradle buildSrc for IDE support"
2-
apply plugin: "groovy"
1+
plugins {
2+
id "java-gradle-plugin"
3+
id "java"
4+
id "groovy"
5+
id 'com.apollographql.apollo' version '2.4.5'
6+
}
7+
8+
sourceCompatibility = JavaVersion.VERSION_11
9+
10+
repositories {
11+
gradlePluginPortal()
12+
mavenCentral()
13+
maven { url 'https://repo.spring.io/plugins-release/' }
14+
}
15+
16+
sourceSets {
17+
main {
18+
java {
19+
srcDirs = []
20+
}
21+
groovy {
22+
srcDirs += ["src/main/java"]
23+
}
24+
}
25+
}
26+
27+
gradlePlugin {
28+
plugins {
29+
checkAntoraVersion {
30+
id = "org.springframework.antora.check-version"
31+
implementationClass = "org.springframework.gradle.antora.CheckAntoraVersionPlugin"
32+
}
33+
trang {
34+
id = "trang"
35+
implementationClass = "trang.TrangPlugin"
36+
}
37+
locks {
38+
id = "locks"
39+
implementationClass = "lock.GlobalLockPlugin"
40+
}
41+
managementConfiguration {
42+
id = "io.spring.convention.management-configuration"
43+
implementationClass = "io.spring.gradle.convention.ManagementConfigurationPlugin"
44+
}
45+
updateDependencies {
46+
id = "org.springframework.security.update-dependencies"
47+
implementationClass = "org.springframework.security.convention.versions.UpdateDependenciesPlugin"
48+
}
49+
sagan {
50+
id = "org.springframework.security.sagan"
51+
implementationClass = "org.springframework.gradle.sagan.SaganPlugin"
52+
}
53+
githubMilestone {
54+
id = "org.springframework.github.milestone"
55+
implementationClass = "org.springframework.gradle.github.milestones.GitHubMilestonePlugin"
56+
}
57+
githubChangelog {
58+
id = "org.springframework.github.changelog"
59+
implementationClass = "org.springframework.gradle.github.changelog.GitHubChangelogPlugin"
60+
}
61+
githubRelease {
62+
id = "org.springframework.github.release"
63+
implementationClass = "org.springframework.gradle.github.release.GitHubReleasePlugin"
64+
}
65+
s101 {
66+
id = "s101"
67+
implementationClass = "s101.S101Plugin"
68+
}
69+
}
70+
}
71+
72+
configurations {
73+
implementation {
74+
exclude module: 'groovy-all'
75+
}
76+
}
377

478
dependencies {
5-
implementation gradleApi()
79+
implementation 'com.google.code.gson:gson:2.8.6'
80+
implementation 'com.thaiopensource:trang:20091111'
81+
implementation 'net.sourceforge.saxon:saxon:9.1.0.8'
82+
implementation 'org.yaml:snakeyaml:1.30'
683
implementation localGroovy()
84+
85+
implementation 'io.github.gradle-nexus:publish-plugin:1.1.0'
86+
implementation 'io.projectreactor:reactor-core:3.4.11'
87+
implementation 'org.gretty:gretty:4.0.0'
88+
implementation 'com.apollographql.apollo:apollo-runtime:2.4.5'
89+
implementation 'com.github.ben-manes:gradle-versions-plugin:0.38.0'
90+
implementation 'com.github.spullara.mustache.java:compiler:0.9.4'
91+
implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15'
92+
implementation 'io.spring.nohttp:nohttp-gradle:0.0.10'
93+
implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
94+
implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
95+
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.26.1'
96+
implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
97+
98+
testImplementation platform('org.junit:junit-bom:5.8.1')
99+
testImplementation "org.junit.jupiter:junit-jupiter-api"
100+
testImplementation "org.junit.jupiter:junit-jupiter-params"
101+
testImplementation "org.junit.jupiter:junit-jupiter-engine"
102+
testImplementation 'org.apache.commons:commons-io:1.3.2'
103+
testImplementation 'org.assertj:assertj-core:3.13.2'
104+
testImplementation 'org.mockito:mockito-core:3.12.4'
105+
testImplementation 'org.mockito:mockito-junit-jupiter:3.12.4'
106+
testImplementation "com.squareup.okhttp3:mockwebserver:3.14.9"
107+
}
108+
109+
110+
tasks.named('test', Test).configure {
111+
onlyIf { !project.hasProperty("buildSrc.skipTests") }
112+
useJUnitPlatform()
113+
jvmArgs(
114+
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
115+
'--add-opens', 'java.base/java.util=ALL-UNNAMED'
116+
)
7117
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mutation CreateIssueInput($assigneeId: ID!, $labelIds: [ID!], $milestoneId: ID!, $repositoryId: ID!, $title: String!) {
2+
createIssue(input: {assigneeIds: [$assigneeId], labelIds: $labelIds, milestoneId: $milestoneId, projectIds: [], repositoryId: $repositoryId, title: $title}) {
3+
issue {
4+
number
5+
}
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
query FindCreateIssueInput($owner: String!, $name: String!, $labelQuery: String, $milestoneName: String) {
2+
repository(owner: $owner, name: $name) {
3+
id
4+
labels(query: $labelQuery, first: 1) {
5+
nodes {
6+
id
7+
name
8+
}
9+
}
10+
milestones(query: $milestoneName, states: [OPEN], first: 1) {
11+
nodes {
12+
id
13+
title
14+
}
15+
}
16+
}
17+
viewer {
18+
id
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
query RateLimit {
2+
rateLimit {
3+
limit
4+
cost
5+
remaining
6+
resetAt
7+
}
8+
}

Diff for: buildSrc/src/main/graphql/org/springframework/security/convention/versions/schema.json

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)