From 8c01a4713ddf87e582dc84fc329af457d21e845c Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Tue, 4 Apr 2023 11:00:29 -0700 Subject: [PATCH] Version 0.9.0 --- README.md | 6 ++++-- examples/lib/bld/bld-wrapper.properties | 2 +- .../bld/extension/propertyfile/PropertyFileBuild.java | 10 +++++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7409639..b7b07d3 100755 --- a/README.md +++ b/README.md @@ -2,9 +2,10 @@ [![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause) [![Java](https://img.shields.io/badge/java-17%2B-blue)](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) +[![Release](https://flat.badgen.net/maven/v/metadata-url/https:/repo.rife2.com/releases/com/uwyn/rife2/bld-property-file/maven-metadata.xml)](https://repo.rife2.com/#/releases/com/uwyn/rife2/bld-property-file) [![GitHub CI](https://github.com/rife2/bld-property-file/actions/workflows/bld.yml/badge.svg)](https://github.com/rife2/bld-property-file/actions/workflows/bld.yml) -A `bld` extension for creating or modifying [property files](https://docs.oracle.com/javase/tutorial/essential/environment/properties.html) with [bld](https://github.com/rife2/rife2/wiki/What-Is-Bld). It is inspired by the [ant PropertyFile task](https://ant.apache.org/manual/Tasks/propertyfile.html). +An extension for creating or modifying [property files](https://docs.oracle.com/javase/tutorial/essential/environment/properties.html) with [bld](https://github.com/rife2/rife2/wiki/What-Is-Bld). It is inspired by the [ant PropertyFile task](https://ant.apache.org/manual/Tasks/propertyfile.html). ```java @BuildCommand @@ -71,7 +72,8 @@ The [Entry](https://rife2.github.io/bld-property-file/rife/bld/extension/propert | `unit()` | The unit value to be used with [Types.DATE](https://rife2.github.io/bld-property-file/rife/bld/extension/propertyfile/Entry.Types.html) calculations. See [Units](#units). | - For convenience the `key` (and optional `type`) is first set in the constructor. -- `key` is required. `value` or `defaultValue` are required except when deleting. +- The `key` is required. +- A `set` value or `defaultValue` are required except when deleting. - For [Types.DATE](https://rife2.github.io/bld-property-file/rife/bld/extension/propertyfile/Entry.Types.html), the `now` keyword can be used as the property value. ## Functions diff --git a/examples/lib/bld/bld-wrapper.properties b/examples/lib/bld/bld-wrapper.properties index 3689138..c772cae 100644 --- a/examples/lib/bld/bld-wrapper.properties +++ b/examples/lib/bld/bld-wrapper.properties @@ -1,6 +1,6 @@ #Sun Apr 02 10:32:44 PDT 2023 bld.extension=com.uwyn.rife2:bld-property-file:0.9.0 -bld.repositories=MAVEN_LOCAL,RIFE2,https\://repo1.maven.org/maven2/ +bld.repositories=MAVEN_LOCAL,RIFE2 bld.downloadExtensionSources=true rife2.downloadLocation= rife2.version=1.5.16 \ No newline at end of file diff --git a/src/bld/java/rife/bld/extension/propertyfile/PropertyFileBuild.java b/src/bld/java/rife/bld/extension/propertyfile/PropertyFileBuild.java index f246c45..0ed8df1 100644 --- a/src/bld/java/rife/bld/extension/propertyfile/PropertyFileBuild.java +++ b/src/bld/java/rife/bld/extension/propertyfile/PropertyFileBuild.java @@ -21,7 +21,9 @@ public class PropertyFileBuild extends Project { javadocOptions .docLint(NO_MISSING) .link("https://rife2.github.io/rife2/"); - publishRepository = MAVEN_LOCAL; + publishRepository = repository("https://repo.rife2.com/releases", + property("rife2.username"), + property("rife2.password")); publishInfo = new PublishInfo() .groupId("com.uwyn.rife2") .artifactId("bld-property-file") @@ -35,7 +37,9 @@ public class PropertyFileBuild extends Project { .url("http://www.apache.org/licenses/LICENSE-2.0.txt")) .scm(new PublishScm().connection("scm:git:https://github.com/rife2/bld-property-file.git") .developerConnection("scm:git:git@github.com:rife2/bld-property-file.git") - .url("https://github.com/rife2/bld-property-file")); + .url("https://github.com/rife2/bld-property-file")) + .signKey(property("sign.key")) + .signPassphrase(property("sign.passphrase")); javaRelease = 17; downloadSources = true; @@ -43,7 +47,7 @@ public class PropertyFileBuild extends Project { repositories = List.of(MAVEN_CENTRAL, RIFE2); scope(compile) - .include(dependency("com.uwyn.rife2", "rife2", version(1, 5, 15))); + .include(dependency("com.uwyn.rife2", "rife2", version(1, 5, 16))); scope(test) .include(dependency("org.jsoup", "jsoup", version(1, 15, 4))) .include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 9, 2)))