diff --git a/examples/bld/.idea/misc.xml b/examples/bld/.idea/misc.xml
index ba79751..d286b3d 100644
--- a/examples/bld/.idea/misc.xml
+++ b/examples/bld/.idea/misc.xml
@@ -5,6 +5,16 @@
+
diff --git a/examples/bld/src/bld/java/com/example/ReadingTimeExampleBuild.java b/examples/bld/src/bld/java/com/example/ReadingTimeExampleBuild.java
index aa97d7f..4a11390 100644
--- a/examples/bld/src/bld/java/com/example/ReadingTimeExampleBuild.java
+++ b/examples/bld/src/bld/java/com/example/ReadingTimeExampleBuild.java
@@ -8,8 +8,7 @@ import rife.bld.operations.RunOperation;
import java.util.List;
-import static rife.bld.dependencies.Repository.MAVEN_CENTRAL;
-import static rife.bld.dependencies.Repository.MAVEN_LOCAL;
+import static rife.bld.dependencies.Repository.*;
import static rife.bld.dependencies.Scope.compile;
public class ReadingTimeExampleBuild extends BaseProject {
@@ -23,11 +22,11 @@ public class ReadingTimeExampleBuild extends BaseProject {
javaRelease = 11;
downloadSources = true;
autoDownloadPurge = true;
- repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL);
+ repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
scope(compile)
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", version(1, 9, 20)))
- .include(dependency("net.thauvin.erik", "readingtime", version(0, 9, 2, "SNAPSHOT")));
+ .include(dependency("net.thauvin.erik", "readingtime", version(0, 9, 1)));
}
public static void main(String[] args) {
diff --git a/pom.xml b/pom.xml
index 275380e..6f36ec5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,14 +1,10 @@
-
-
-
-
-
-
+
4.0.0
net.thauvin.erik
readingtime
- 0.9.1
+ 0.9.2-SNAPSHOT
readingtime
Estimated Reading Time for Blog Posts, Articles, etc.
https://github.com/ethauvin/readingtime
@@ -18,6 +14,20 @@
https://opensource.org/licenses/BSD-3-Clause
+
+
+ org.jetbrains.kotlin
+ kotlin-stdlib
+ 1.9.20
+ compile
+
+
+ org.jsoup
+ jsoup
+ 1.16.2
+ compile
+
+
ethauvin
@@ -27,37 +37,8 @@
- scm:git:git://github.com/ethauvin/readingtime.git
+ scm:git:https://github.com/ethauvin/readingtime
scm:git:git@github.com:ethauvin/readingtime.git
https://github.com/ethauvin/readingtime
-
- GitHub
- https://github.com/ethauvin/readingtime/issues
-
-
-
-
- org.jetbrains.kotlin
- kotlin-bom
- 1.7.10
- pom
- import
-
-
-
-
-
- org.jetbrains.kotlin
- kotlin-stdlib-jdk8
- 1.7.10
- compile
-
-
- org.jsoup
- jsoup
- 1.15.3
- runtime
-
-
diff --git a/src/bld/java/net/thauvin/erik/ReadingTimeBuild.java b/src/bld/java/net/thauvin/erik/ReadingTimeBuild.java
index 3dde2b1..0f4c52c 100644
--- a/src/bld/java/net/thauvin/erik/ReadingTimeBuild.java
+++ b/src/bld/java/net/thauvin/erik/ReadingTimeBuild.java
@@ -43,6 +43,7 @@ import rife.bld.publish.PomBuilder;
import rife.bld.publish.PublishDeveloper;
import rife.bld.publish.PublishLicense;
import rife.bld.publish.PublishScm;
+import rife.tools.exceptions.FileUtilsErrorException;
import java.io.File;
import java.io.IOException;
@@ -67,7 +68,7 @@ public class ReadingTimeBuild extends Project {
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", version(1, 9, 20)))
.include(dependency("org.jsoup", "jsoup", version(1, 16, 2)));
scope(test)
- .include(dependency("org.jetbrains.kotlin:kotlin-test-junit5:1.9.20"))
+ .include(dependency("org.jetbrains.kotlin", "kotlin-test-junit5", version(1, 9, 20)))
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 1)))
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 1)));
@@ -135,7 +136,12 @@ public class ReadingTimeBuild extends Project {
@Override
public void publish() throws Exception {
super.publish();
- PomBuilder.generateInto(publishOperation().info(), publishOperation().dependencies(),
+ pomRoot();
+ }
+
+ @BuildCommand(value = "pom-root", summary = "Generates the POM file in the root directory")
+ public void pomRoot() throws FileUtilsErrorException {
+ PomBuilder.generateInto(publishOperation().fromProject(this).info(), dependencies(),
new File(workDirectory, "pom.xml"));
}
}