diff --git a/.idea/libraries/bld.xml b/.idea/libraries/bld.xml
index 5c4010c..4dd96bf 100644
--- a/.idea/libraries/bld.xml
+++ b/.idea/libraries/bld.xml
@@ -2,12 +2,12 @@
-
+
-
+
diff --git a/.idea/libraries/compile.xml b/.idea/libraries/compile.xml
index 99cc0c0..9bd86aa 100644
--- a/.idea/libraries/compile.xml
+++ b/.idea/libraries/compile.xml
@@ -7,7 +7,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/.idea/libraries/runtime.xml b/.idea/libraries/runtime.xml
index d4069f2..2ae5c4b 100644
--- a/.idea/libraries/runtime.xml
+++ b/.idea/libraries/runtime.xml
@@ -8,7 +8,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/.idea/libraries/test.xml b/.idea/libraries/test.xml
index 57ed5ef..b80486a 100644
--- a/.idea/libraries/test.xml
+++ b/.idea/libraries/test.xml
@@ -8,7 +8,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 4c33beb..5b2667b 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -9,7 +9,7 @@
],
"java.configuration.updateBuildConfiguration": "automatic",
"java.project.referencedLibraries": [
- "${HOME}/.bld/dist/bld-2.1.0.jar",
+ "${HOME}/.bld/dist/bld-2.0.1.jar",
"lib/**/*.jar"
]
}
diff --git a/README.md b/README.md
index e7170d4..46e298b 100755
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://opensource.org/licenses/Apache-2.0)
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
-[](https://rife2.com/bld)
+[](https://rife2.com/bld)
[](https://repo.rife2.com/#/releases/com/uwyn/rife2/bld-detekt)
[](https://repo.rife2.com/#/snapshots/com/uwyn/rife2/bld-detekt)
[](https://github.com/rife2/bld-detekt/actions/workflows/bld.yml)
diff --git a/examples/.idea/libraries/bld.xml b/examples/.idea/libraries/bld.xml
index 5c4010c..4dd96bf 100644
--- a/examples/.idea/libraries/bld.xml
+++ b/examples/.idea/libraries/bld.xml
@@ -2,12 +2,12 @@
-
+
-
+
diff --git a/examples/.idea/libraries/compile.xml b/examples/.idea/libraries/compile.xml
index 99cc0c0..9bd86aa 100644
--- a/examples/.idea/libraries/compile.xml
+++ b/examples/.idea/libraries/compile.xml
@@ -7,7 +7,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/examples/.idea/libraries/runtime.xml b/examples/.idea/libraries/runtime.xml
index d4069f2..2ae5c4b 100644
--- a/examples/.idea/libraries/runtime.xml
+++ b/examples/.idea/libraries/runtime.xml
@@ -8,7 +8,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/examples/.idea/libraries/test.xml b/examples/.idea/libraries/test.xml
index 57ed5ef..b80486a 100644
--- a/examples/.idea/libraries/test.xml
+++ b/examples/.idea/libraries/test.xml
@@ -8,7 +8,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/examples/.vscode/settings.json b/examples/.vscode/settings.json
index 4c33beb..5b2667b 100644
--- a/examples/.vscode/settings.json
+++ b/examples/.vscode/settings.json
@@ -9,7 +9,7 @@
],
"java.configuration.updateBuildConfiguration": "automatic",
"java.project.referencedLibraries": [
- "${HOME}/.bld/dist/bld-2.1.0.jar",
+ "${HOME}/.bld/dist/bld-2.0.1.jar",
"lib/**/*.jar"
]
}
diff --git a/examples/lib/bld/bld-wrapper.jar b/examples/lib/bld/bld-wrapper.jar
index e617d5b..32bac6a 100644
Binary files a/examples/lib/bld/bld-wrapper.jar and b/examples/lib/bld/bld-wrapper.jar differ
diff --git a/examples/lib/bld/bld-wrapper.properties b/examples/lib/bld/bld-wrapper.properties
index ef08e20..d6daa69 100644
--- a/examples/lib/bld/bld-wrapper.properties
+++ b/examples/lib/bld/bld-wrapper.properties
@@ -1,8 +1,8 @@
bld.downloadExtensionJavadoc=false
bld.downloadExtensionSources=true
bld.downloadLocation=
-bld.extension-detekt=com.uwyn.rife2:bld-detekt:0.9.6
-bld.extension-kotlin=com.uwyn.rife2:bld-kotlin:1.0.1
+bld.extension-detekt=com.uwyn.rife2:bld-detekt:0.9.6-SNAPSHOT
+bld.extension-kotlin=com.uwyn.rife2:bld-kotlin:1.0.1-SNAPSHOT
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
bld.sourceDirectories=
-bld.version=2.1.0
+bld.version=2.0.1
diff --git a/lib/bld/bld-wrapper.jar b/lib/bld/bld-wrapper.jar
index a7f1aff..f836770 100644
Binary files a/lib/bld/bld-wrapper.jar and b/lib/bld/bld-wrapper.jar differ
diff --git a/lib/bld/bld-wrapper.properties b/lib/bld/bld-wrapper.properties
index 5d0bba4..79b2f59 100644
--- a/lib/bld/bld-wrapper.properties
+++ b/lib/bld/bld-wrapper.properties
@@ -1,8 +1,8 @@
bld.downloadExtensionJavadoc=false
bld.downloadExtensionSources=true
bld.downloadLocation=
-bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.3
-bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.1.5
+bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.2
+bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.1.4
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
bld.sourceDirectories=
-bld.version=2.1.0
+bld.version=2.0.1
diff --git a/src/bld/java/rife/bld/extension/DetektOperationBuild.java b/src/bld/java/rife/bld/extension/DetektOperationBuild.java
index ba94b28..549abd4 100644
--- a/src/bld/java/rife/bld/extension/DetektOperationBuild.java
+++ b/src/bld/java/rife/bld/extension/DetektOperationBuild.java
@@ -33,7 +33,7 @@ public class DetektOperationBuild extends Project {
public DetektOperationBuild() {
pkg = "rife.bld.extension";
name = "DetektOperation";
- version = version(0, 9, 6);
+ version = version(0, 9, 6, "SNAPSHOT");
javaRelease = 17;
downloadSources = true;
@@ -41,7 +41,7 @@ public class DetektOperationBuild extends Project {
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, RIFE2_RELEASES, RIFE2_SNAPSHOTS);
scope(compile)
- .include(dependency("com.uwyn.rife2", "bld", version(2, 1, 0)))
+ .include(dependency("com.uwyn.rife2", "bld", version(2, 0, 1)))
.include(dependency("io.gitlab.arturbosch.detekt", "detekt-cli", version(1, 23, 6)));
scope(test)
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 0)))
diff --git a/src/main/java/rife/bld/extension/DetektOperation.java b/src/main/java/rife/bld/extension/DetektOperation.java
index ec3ebae..e0b6f21 100644
--- a/src/main/java/rife/bld/extension/DetektOperation.java
+++ b/src/main/java/rife/bld/extension/DetektOperation.java
@@ -149,7 +149,7 @@ public class DetektOperation extends AbstractProcessOperation {
* @return this operation instance
*/
public DetektOperation basePath(Path path) {
- return basePath(path.toFile().getAbsolutePath());
+ return basePath(path.toFile());
}
/**
@@ -183,7 +183,7 @@ public class DetektOperation extends AbstractProcessOperation {
* @return this operation instance
*/
public DetektOperation baseline(Path baseline) {
- return baseline(baseline.toFile().getAbsolutePath());
+ return baseline(baseline.toFile());
}
/**
@@ -214,7 +214,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths one or more files
* @return this operation instance
- * @see #classPath(Collection)
*/
public DetektOperation classPath(File... paths) {
return classPath(List.of(paths));
@@ -226,7 +225,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths one or more files
* @return this operation instance
- * @see #classPathPaths(Collection)
*/
public DetektOperation classPath(Path... paths) {
return classPathPaths(List.of(paths));
@@ -238,7 +236,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths one or more files
* @return this operation instance
- * @see #classPathStrings(Collection)
*/
public DetektOperation classPath(String... paths) {
return classPathStrings(List.of(paths));
@@ -251,7 +248,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths the paths
* @return this operation instance
- * @see #classPath(File...)
*/
public DetektOperation classPath(Collection paths) {
classpath_.addAll(paths);
@@ -273,10 +269,10 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths the paths
* @return this operation instance
- * @see #classPath(Path...)
*/
public DetektOperation classPathPaths(Collection paths) {
- return classPath(paths.stream().map(Path::toFile).toList());
+ classpath_.addAll(paths.stream().map(Path::toFile).toList());
+ return this;
}
/**
@@ -285,10 +281,10 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths the paths
* @return this operation instance
- * @see #classPath(String...)
*/
public DetektOperation classPathStrings(Collection paths) {
- return classPath(paths.stream().map(File::new).toList());
+ classpath_.addAll(paths.stream().map(File::new).toList());
+ return this;
}
/**
@@ -296,7 +292,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param configs one or more config files
* @return this operation instance
- * @see #config(Collection)
*/
public DetektOperation config(File... configs) {
return config(List.of(configs));
@@ -307,7 +302,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param configs one or more config files
* @return this operation instance
- * @see #configPaths(Collection)
*/
public DetektOperation config(Path... configs) {
return configPaths(List.of(configs));
@@ -318,7 +312,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param configs one or more config files
* @return this operation instance
- * @see #configStrings(Collection)
*/
public DetektOperation config(String... configs) {
return configStrings(List.of(configs));
@@ -330,7 +323,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param configs the config files
* @return this operation instance
- * @see #config(File...)
*/
public DetektOperation config(Collection configs) {
config_.addAll(configs);
@@ -351,10 +343,10 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param configs the config files
* @return this operation instance
- * @see #config(Path...)
*/
public DetektOperation configPaths(Collection configs) {
- return config(configs.stream().map(Path::toFile).toList());
+ config_.addAll(configs.stream().map(Path::toFile).toList());
+ return this;
}
/**
@@ -385,7 +377,7 @@ public class DetektOperation extends AbstractProcessOperation {
* @return this operation instance
*/
public DetektOperation configResource(Path resource) {
- return configResource(resource.toFile().getAbsolutePath());
+ return configResource(resource.toFile());
}
/**
@@ -402,7 +394,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param configs the config files
* @return this operation instance
- * @see #config(String...)
*/
public DetektOperation configStrings(Collection configs) {
config_.addAll(configs.stream().map(File::new).toList());
@@ -450,7 +441,8 @@ public class DetektOperation extends AbstractProcessOperation {
* @return this operation instance
*/
public DetektOperation excludes(String... patterns) {
- return excludes(List.of(patterns));
+ excludes_.addAll(List.of(patterns));
+ return this;
}
/**
@@ -713,7 +705,8 @@ public class DetektOperation extends AbstractProcessOperation {
* @return this operation instance
*/
public DetektOperation includes(String... patterns) {
- return includes(List.of(patterns));
+ includes_.addAll(List.of(patterns));
+ return this;
}
/**
@@ -742,7 +735,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths the paths
* @return this operation instance
- * @see #input(Collection)
*/
public DetektOperation input(Collection paths) {
input_.addAll(paths);
@@ -754,7 +746,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths one or more paths
* @return this operation instance
- * @see #inputStrings(Collection)
*/
public DetektOperation input(String... paths) {
return inputStrings(List.of(paths));
@@ -765,7 +756,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths one or more paths
* @return this operation instance
- * @see #input(Collection)
*/
public DetektOperation input(File... paths) {
return input(List.of(paths));
@@ -776,7 +766,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths one or more paths
* @return this operation instance
- * @see #inputPaths(Collection)
*/
public DetektOperation input(Path... paths) {
return inputPaths(List.of(paths));
@@ -796,10 +785,10 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths the paths
* @return this operation instance
- * @see #input(Path...)
*/
public DetektOperation inputPaths(Collection paths) {
- return input(paths.stream().map(Path::toFile).toList());
+ input_.addAll(paths.stream().map(Path::toFile).toList());
+ return this;
}
/**
@@ -807,10 +796,10 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param paths the paths
* @return this operation instance
- * @see #input(String...)
*/
public DetektOperation inputStrings(Collection paths) {
- return input(paths.stream().map(File::new).toList());
+ input_.addAll(paths.stream().map(File::new).toList());
+ return this;
}
/*
@@ -890,7 +879,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param jars one or more jars
* @return this operation instance
- * @see #pluginsStrings(Collection)
*/
public DetektOperation plugins(String... jars) {
return pluginsStrings(List.of(jars));
@@ -901,7 +889,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param jars one or more jars
* @return this operation instance
- * @see #plugins(Collection)
*/
public DetektOperation plugins(File... jars) {
return plugins(List.of(jars));
@@ -912,7 +899,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param jars one or more jars
* @return this operation instance
- * @see #pluginsPaths(Collection)
*/
public DetektOperation plugins(Path... jars) {
return pluginsPaths(List.of(jars));
@@ -923,7 +909,6 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param jars the jars paths
* @return this operation instance
- * @see #input(File...)
*/
public DetektOperation plugins(Collection jars) {
plugins_.addAll(jars);
@@ -944,10 +929,10 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param jars the jars paths
* @return this operation instance
- * @see #plugins(Path...)
*/
public DetektOperation pluginsPaths(Collection jars) {
- return plugins(jars.stream().map(Path::toFile).toList());
+ plugins_.addAll(jars.stream().map(Path::toFile).toList());
+ return this;
}
/**
@@ -955,10 +940,10 @@ public class DetektOperation extends AbstractProcessOperation {
*
* @param jars the jars paths
* @return this operation instance
- * @see #plugins(String...)
*/
public DetektOperation pluginsStrings(Collection jars) {
- return plugins(jars.stream().map(File::new).toList());
+ plugins_.addAll(jars.stream().map(File::new).toList());
+ return this;
}
/**
diff --git a/src/test/java/rife/bld/extension/DetektOperationTest.java b/src/test/java/rife/bld/extension/DetektOperationTest.java
index 3a9ec3f..24e20ae 100644
--- a/src/test/java/rife/bld/extension/DetektOperationTest.java
+++ b/src/test/java/rife/bld/extension/DetektOperationTest.java
@@ -71,7 +71,7 @@ class DetektOperationTest {
op = op.basePath(bar.toPath());
assertThat(op.basePath()).as("as path").isEqualTo(bar.getAbsolutePath());
- op = op.basePath("foo");
+ op = new DetektOperation().basePath("foo");
assertThat(op.basePath()).as("as string").isEqualTo("foo");
}
@@ -86,7 +86,7 @@ class DetektOperationTest {
op = op.baseline(bar.toPath());
assertThat(op.baseline()).as("as path").isEqualTo(bar.getAbsolutePath());
- op = op.baseline("foo");
+ op = new DetektOperation().baseline("foo");
assertThat(op.baseline()).as("as string").isEqualTo("foo");
}