Skip to content

Commit 15685b3

Browse files
committed
1 parent a05d89d commit 15685b3

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Diff for: buildSrc/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ repositories {
1616

1717
dependencies {
1818
implementation "com.github.ben-manes:gradle-versions-plugin:0.38.0"
19-
implementation "io.github.gradle-nexus:publish-plugin:2.0.0-rc-2"
20-
implementation "io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.41"
19+
implementation "io.github.gradle-nexus:publish-plugin:1.1.0"
20+
implementation "io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.31"
2121
implementation "io.spring.nohttp:nohttp-gradle:0.0.11"
2222
implementation "org.asciidoctor:asciidoctor-gradle-jvm:3.3.2"
2323
implementation "org.asciidoctor:asciidoctor-gradle-jvm-pdf:3.3.2"

Diff for: buildSrc/src/main/java/org/springframework/gradle/checkstyle/SpringJavaCheckstylePlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@
3737
public class SpringJavaCheckstylePlugin implements Plugin<Project> {
3838
private static final String CHECKSTYLE_DIR = "etc/checkstyle";
3939
private static final String SPRING_JAVAFORMAT_VERSION_PROPERTY = "springJavaformatVersion";
40-
private static final String DEFAULT_SPRING_JAVAFORMAT_VERSION = "0.0.41";
40+
private static final String DEFAULT_SPRING_JAVAFORMAT_VERSION = "0.0.31";
4141
private static final String NOHTTP_CHECKSTYLE_VERSION_PROPERTY = "nohttpCheckstyleVersion";
4242
private static final String DEFAULT_NOHTTP_CHECKSTYLE_VERSION = "0.0.11";
4343
private static final String CHECKSTYLE_TOOL_VERSION_PROPERTY = "checkstyleToolVersion";

Diff for: buildSrc/src/main/java/org/springframework/gradle/maven/SpringArtifactoryPlugin.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,8 +36,6 @@ public void apply(Project project) {
3636
// Apply artifactory repository configuration
3737
boolean isSnapshot = ProjectUtils.isSnapshot(project);
3838
boolean isMilestone = ProjectUtils.isMilestone(project);
39-
String artifactoryUsername = (String) project.findProperty("artifactoryUsername");
40-
String artifactoryPassword = (String) project.findProperty("artifactoryPassword");
4139

4240
ArtifactoryPluginConvention artifactoryExtension = project.getExtensions().getByType(ArtifactoryPluginConvention.class);
4341
artifactoryExtension.publish((publish) -> {
@@ -46,12 +44,14 @@ public void apply(Project project) {
4644
String repoKey = isSnapshot ? "libs-snapshot-local" : isMilestone ? "libs-milestone-local" : "libs-release-local";
4745
repository.setRepoKey(repoKey);
4846
if (project.hasProperty("artifactoryUsername")) {
49-
repository.setUsername(artifactoryUsername);
50-
repository.setPassword(artifactoryPassword);
47+
repository.setUsername((String) project.findProperty("artifactoryUsername"));
48+
repository.setPassword((String) project.findProperty("artifactoryPassword"));
5149
}
5250
});
5351
// Would fail if maven publish is not applied, i.e. in root project (SpringRootProjectPlugin)
54-
project.getPlugins().withType(MavenPublishPlugin.class, mavenPublish -> publish.defaults((defaults) -> defaults.publications("mavenJava")));
52+
project.getPlugins().withType(MavenPublishPlugin.class, mavenPublish -> {
53+
publish.defaults((defaults) -> defaults.publications("mavenJava"));
54+
});
5555
});
5656
}
5757
}

Diff for: buildSrc/src/main/java/org/springframework/gradle/maven/SpringPublishLocalPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

Diff for: gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ org.gradle.parallel=true
44
org.gradle.caching=true
55
springFrameworkVersion=6.1.3
66
springSecurityVersion=6.3.0-M1
7-
springJavaformatVersion=0.0.41
7+
springJavaformatVersion=0.0.38
88
springJavaformatExcludePackages=org/springframework/security/config org/springframework/security/oauth2
99
checkstyleToolVersion=8.34
1010
nohttpCheckstyleVersion=0.0.11

0 commit comments

Comments
 (0)