Skip to content

Commit 9c99c76

Browse files
authored
Merge pull request #246 from hazendaz/master
Upgrade file-management and cleanup build
2 parents 5218747 + 8d54a46 commit 9c99c76

File tree

5 files changed

+7
-24
lines changed

5 files changed

+7
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
target
33

44
# Eclipse
5+
.factorypath
56
.settings
67
*.classpath
78
*.project

pom.xml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
<version>${mavenVersion}</version>
3636
<scope>provided</scope>
3737
</dependency>
38-
<dependency>
39-
<groupId>org.apache.maven</groupId>
40-
<artifactId>maven-compat</artifactId>
41-
<version>${mavenVersion}</version>
42-
<scope>provided</scope>
43-
</dependency>
4438
<dependency>
4539
<groupId>org.apache.maven</groupId>
4640
<artifactId>maven-core</artifactId>
@@ -53,33 +47,21 @@
5347
<version>${mavenVersion}</version>
5448
<scope>provided</scope>
5549
</dependency>
56-
<dependency>
57-
<groupId>org.apache.maven</groupId>
58-
<artifactId>maven-model-builder</artifactId>
59-
<version>${mavenVersion}</version>
60-
<scope>provided</scope>
61-
</dependency>
6250
<dependency>
6351
<groupId>org.apache.maven</groupId>
6452
<artifactId>maven-plugin-api</artifactId>
6553
<version>${mavenVersion}</version>
6654
<scope>provided</scope>
6755
</dependency>
68-
<dependency>
69-
<groupId>org.apache.maven</groupId>
70-
<artifactId>maven-settings</artifactId>
71-
<version>${mavenVersion}</version>
72-
<scope>provided</scope>
73-
</dependency>
7456
<dependency>
7557
<groupId>org.apache.maven.shared</groupId>
7658
<artifactId>file-management</artifactId>
77-
<version>3.0.0</version>
59+
<version>3.1.0</version>
7860
</dependency>
7961
<dependency>
8062
<groupId>org.apache.maven.plugin-tools</groupId>
8163
<artifactId>maven-plugin-annotations</artifactId>
82-
<version>3.6.4</version>
64+
<version>3.9.0</version>
8365
<scope>provided</scope>
8466
</dependency>
8567
<dependency>

src/main/java/org/codehaus/gmavenplus/mojo/AbstractGroovyDocMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ protected synchronized void doGroovyDocGeneration(final FileSet[] sourceDirector
313313
Properties docProperties = setupProperties();
314314
Object fileOutputTool = invokeConstructor(findConstructor(fileOutputToolClass));
315315
Object classpathResourceManager = invokeConstructor(findConstructor(classpathResourceManagerClass));
316-
FileSetManager fileSetManager = new FileSetManager(getLog());
316+
FileSetManager fileSetManager = new FileSetManager();
317317
List<String> sourceDirectoriesStrings = new ArrayList<>();
318318
for (FileSet sourceDirectory : sourceDirectories) {
319319
sourceDirectoriesStrings.add(sourceDirectory.getDirectory());

src/main/java/org/codehaus/gmavenplus/mojo/AbstractGroovySourcesMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public abstract class AbstractGroovySourcesMojo extends AbstractGroovyMojo {
5252
*/
5353
protected SortedSet<File> getFiles(final FileSet[] fromSources, final boolean includeJavaSources) {
5454
SortedSet<File> files = new TreeSet<>();
55-
FileSetManager fileSetManager = new FileSetManager(getLog());
55+
FileSetManager fileSetManager = new FileSetManager();
5656

5757
for (FileSet fileSet : getFilesets(fromSources, includeJavaSources)) {
5858
for (String include : fileSetManager.getIncludedFiles(fileSet)) {
@@ -72,7 +72,7 @@ protected SortedSet<File> getFiles(final FileSet[] fromSources, final boolean in
7272
*/
7373
protected SortedSet<File> getTestFiles(final FileSet[] fromSources, final boolean includeJavaSources) {
7474
SortedSet<File> files = new TreeSet<>();
75-
FileSetManager fileSetManager = new FileSetManager(getLog());
75+
FileSetManager fileSetManager = new FileSetManager();
7676

7777
for (FileSet fileSet : getTestFilesets(fromSources, includeJavaSources)) {
7878
for (String include : fileSetManager.getIncludedFiles(fileSet)) {

src/main/java/org/codehaus/gmavenplus/mojo/AbstractGroovyStubSourcesMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public abstract class AbstractGroovyStubSourcesMojo extends AbstractGroovySource
4242
*/
4343
protected Set<File> getStubs(File outputDirectory) {
4444
Set<File> files = new HashSet<>();
45-
FileSetManager fileSetManager = new FileSetManager(getLog());
45+
FileSetManager fileSetManager = new FileSetManager();
4646

4747
FileSet fileSet = new FileSet();
4848
fileSet.setDirectory(outputDirectory.getAbsolutePath());

0 commit comments

Comments
 (0)