Version 0.9.0

This commit is contained in:
Erik C. Thauvin 2023-04-04 11:00:29 -07:00
parent f79af6161d
commit 8c01a4713d
3 changed files with 12 additions and 6 deletions

View file

@ -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) [![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) [![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) [![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 ```java
@BuildCommand @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). | | `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. - 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. - 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 ## Functions

View file

@ -1,6 +1,6 @@
#Sun Apr 02 10:32:44 PDT 2023 #Sun Apr 02 10:32:44 PDT 2023
bld.extension=com.uwyn.rife2:bld-property-file:0.9.0 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 bld.downloadExtensionSources=true
rife2.downloadLocation= rife2.downloadLocation=
rife2.version=1.5.16 rife2.version=1.5.16

View file

@ -21,7 +21,9 @@ public class PropertyFileBuild extends Project {
javadocOptions javadocOptions
.docLint(NO_MISSING) .docLint(NO_MISSING)
.link("https://rife2.github.io/rife2/"); .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() publishInfo = new PublishInfo()
.groupId("com.uwyn.rife2") .groupId("com.uwyn.rife2")
.artifactId("bld-property-file") .artifactId("bld-property-file")
@ -35,7 +37,9 @@ public class PropertyFileBuild extends Project {
.url("http://www.apache.org/licenses/LICENSE-2.0.txt")) .url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
.scm(new PublishScm().connection("scm:git:https://github.com/rife2/bld-property-file.git") .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") .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; javaRelease = 17;
downloadSources = true; downloadSources = true;
@ -43,7 +47,7 @@ public class PropertyFileBuild extends Project {
repositories = List.of(MAVEN_CENTRAL, RIFE2); repositories = List.of(MAVEN_CENTRAL, RIFE2);
scope(compile) scope(compile)
.include(dependency("com.uwyn.rife2", "rife2", version(1, 5, 15))); .include(dependency("com.uwyn.rife2", "rife2", version(1, 5, 16)));
scope(test) scope(test)
.include(dependency("org.jsoup", "jsoup", version(1, 15, 4))) .include(dependency("org.jsoup", "jsoup", version(1, 15, 4)))
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 9, 2))) .include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 9, 2)))