Merge branch '2.5.x'
Closes gh-27758
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,7 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class ArtifactoryRepositoryTests {
|
||||
class ArtifactoryRepositoryTests {
|
||||
|
||||
@Test
|
||||
void whenProjectVersionIsMilestoneThenRepositoryIsMilestone() {
|
||||
|
||||
@@ -38,14 +38,14 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class BomPluginIntegrationTests {
|
||||
class BomPluginIntegrationTests {
|
||||
|
||||
private File projectDir;
|
||||
|
||||
private File buildFile;
|
||||
|
||||
@BeforeEach
|
||||
public void setup(@TempDir File projectDir) throws IOException {
|
||||
void setup(@TempDir File projectDir) throws IOException {
|
||||
this.projectDir = projectDir;
|
||||
this.buildFile = new File(this.projectDir, "build.gradle");
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class ArtifactVersionDependencyVersionTests {
|
||||
class ArtifactVersionDependencyVersionTests {
|
||||
|
||||
@Test
|
||||
void parseWhenVersionIsNotAMavenVersionShouldReturnNull() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class CalendarVersionDependencyVersionTests {
|
||||
class CalendarVersionDependencyVersionTests {
|
||||
|
||||
@Test
|
||||
void parseWhenVersionIsNotACalendarVersionShouldReturnNull() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class DependencyVersionTests {
|
||||
class DependencyVersionTests {
|
||||
|
||||
@Test
|
||||
void parseWhenValidMavenVersionShouldReturnArtifactVersionDependencyVersion() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class NumericQualifierDependencyVersionTests {
|
||||
class NumericQualifierDependencyVersionTests {
|
||||
|
||||
@Test
|
||||
void isNewerThanOnVersionWithNumericQualifierWhenInputHasNoQualifierShouldReturnTrue() {
|
||||
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class ReleaseTrainDependencyVersionTests {
|
||||
class ReleaseTrainDependencyVersionTests {
|
||||
|
||||
@Test
|
||||
void parsingOfANonReleaseTrainVersionReturnsNull() {
|
||||
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Brian Clozel
|
||||
*/
|
||||
public class CompoundRowTests {
|
||||
class CompoundRowTests {
|
||||
|
||||
private static final String NEWLINE = System.lineSeparator();
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Brian Clozel
|
||||
*/
|
||||
public class SingleRowTests {
|
||||
class SingleRowTests {
|
||||
|
||||
private static final String NEWLINE = System.lineSeparator();
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Brian Clozel
|
||||
*/
|
||||
public class TableTests {
|
||||
class TableTests {
|
||||
|
||||
private static final String NEWLINE = System.lineSeparator();
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class ReproduciblePluginsDatActionTests {
|
||||
class ReproduciblePluginsDatActionTests {
|
||||
|
||||
@Test
|
||||
void postProcessingOrdersCategoriesAndPlugins() throws IOException {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -33,7 +33,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
* @author Andy Wilkinson
|
||||
* @author Mike Smithson
|
||||
*/
|
||||
public class PluginXmlParserTests {
|
||||
class PluginXmlParserTests {
|
||||
|
||||
private final PluginXmlParser parser = new PluginXmlParser();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,14 +34,14 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class OptionalDependenciesPluginIntegrationTests {
|
||||
class OptionalDependenciesPluginIntegrationTests {
|
||||
|
||||
private File projectDir;
|
||||
|
||||
private File buildFile;
|
||||
|
||||
@BeforeEach
|
||||
public void setup(@TempDir File projectDir) throws IOException {
|
||||
void setup(@TempDir File projectDir) throws IOException {
|
||||
this.projectDir = projectDir;
|
||||
this.buildFile = new File(this.projectDir, "build.gradle");
|
||||
}
|
||||
@@ -80,7 +80,7 @@ public class OptionalDependenciesPluginIntegrationTests {
|
||||
optionalDependenciesAreAddedToSourceSetClasspath("test", "runtimeClasspath");
|
||||
}
|
||||
|
||||
public void optionalDependenciesAreAddedToSourceSetClasspath(String sourceSet, String classpath)
|
||||
private void optionalDependenciesAreAddedToSourceSetClasspath(String sourceSet, String classpath)
|
||||
throws IOException {
|
||||
try (PrintWriter out = new PrintWriter(new FileWriter(this.buildFile))) {
|
||||
out.println("plugins {");
|
||||
|
||||
Reference in New Issue
Block a user