Compare commits
2 commits
00cbeb8ad6
...
dd302a54e1
Author | SHA1 | Date | |
---|---|---|---|
dd302a54e1 | |||
c758270144 |
11 changed files with 15 additions and 71 deletions
4
.idea/libraries/bld.xml
generated
4
.idea/libraries/bld.xml
generated
|
@ -2,11 +2,11 @@
|
||||||
<library name="bld">
|
<library name="bld">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.2.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.5.jar!/" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.2-sources.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.5-sources.jar!/" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<excluded>
|
<excluded>
|
||||||
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
||||||
|
|
5
.idea/misc.xml
generated
5
.idea/misc.xml
generated
|
@ -17,11 +17,6 @@
|
||||||
<pattern value="rife.bld.extension.propertyfile.PropertyFileOperation" />
|
<pattern value="rife.bld.extension.propertyfile.PropertyFileOperation" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PDMPlugin">
|
<component name="PDMPlugin">
|
||||||
<option name="customRuleSets">
|
|
||||||
<list>
|
|
||||||
<option value="K:\java\semver\config\pmd.xml" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
<option name="skipTestSources" value="false" />
|
<option name="skipTestSources" value="false" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[](https://opensource.org/licenses/Apache-2.0)
|
[](https://opensource.org/licenses/Apache-2.0)
|
||||||
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
[](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-property-file)
|
[](https://repo.rife2.com/#/releases/com/uwyn/rife2/bld-property-file)
|
||||||
[](https://repo.rife2.com/#/snapshots/com/uwyn/rife2/bld-property-file)
|
[](https://repo.rife2.com/#/snapshots/com/uwyn/rife2/bld-property-file)
|
||||||
[](https://github.com/rife2/bld-property-file/actions/workflows/bld.yml)
|
[](https://github.com/rife2/bld-property-file/actions/workflows/bld.yml)
|
||||||
|
|
4
examples/.idea/libraries/bld.xml
generated
4
examples/.idea/libraries/bld.xml
generated
|
@ -2,12 +2,12 @@
|
||||||
<library name="bld">
|
<library name="bld">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.2.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.5.jar!/" />
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.2-sources.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-1.7.5-sources.jar!/" />
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<jarDirectory url="file://$PROJECT_DIR$/lib/bld" recursive="false" />
|
<jarDirectory url="file://$PROJECT_DIR$/lib/bld" recursive="false" />
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
# [Bld Property File](https://github.com/rife2/bld-property-file) Extension Examples
|
|
||||||
|
|
||||||
## Compile
|
|
||||||
|
|
||||||
First make sure the project up-to-date and compiled:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
./bld download compile
|
|
||||||
```
|
|
||||||
## Run
|
|
||||||
|
|
||||||
To run the examples, issue one of the following command or combination there off.
|
|
||||||
|
|
||||||
```shell
|
|
||||||
./bld updateMajor run
|
|
||||||
./bld updateMinor run
|
|
||||||
./bld updatePatch run
|
|
||||||
./bld updateRelease run
|
|
||||||
```
|
|
||||||
Upon execution, the `version.properties` file will be created and displayed:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
./bld updateMajor run
|
|
||||||
```
|
|
||||||
|
|
||||||
```text
|
|
||||||
+---------------------------+
|
|
||||||
| version.properties |
|
|
||||||
+---------------------------+
|
|
||||||
#
|
|
||||||
#Sun Apr 02 23:51:39 PDT 2023
|
|
||||||
build.date=2023-04-02
|
|
||||||
version.major=1
|
|
||||||
version.minor=0
|
|
||||||
version.patch=0
|
|
||||||
```
|
|
||||||
|
|
||||||
Subsequent commands will reflect the modifications to the
|
|
||||||
`version.major`, `version.minor` or `version.patch` properties:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
./bld upatePatch run
|
|
||||||
```
|
|
||||||
|
|
||||||
```text
|
|
||||||
+---------------------------+
|
|
||||||
| version.properties |
|
|
||||||
+---------------------------+
|
|
||||||
#
|
|
||||||
#Sun Apr 02 23:55:09 PDT 2023
|
|
||||||
build.date=2023-04-02
|
|
||||||
version.major=1
|
|
||||||
version.minor=0
|
|
||||||
version.patch=10
|
|
||||||
```
|
|
||||||
|
|
||||||
[View the Examples Build](https://github.com/rife2/bld-property-file/blob/master/examples/src/bld/java/com/example/PropertyFileExampleBuild.java)
|
|
Binary file not shown.
|
@ -3,4 +3,4 @@ bld.extension=com.uwyn.rife2:bld-property-file:0.9.3-SNAPSHOT
|
||||||
bld.repositories=MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.version=1.7.2
|
bld.version=1.7.5
|
||||||
|
|
6
examples/version.properties
Normal file
6
examples/version.properties
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#
|
||||||
|
#Fri Oct 20 21:09:14 PDT 2023
|
||||||
|
release=beta.20231020210914
|
||||||
|
version.major=1
|
||||||
|
version.minor=0
|
||||||
|
version.patch=1
|
Binary file not shown.
|
@ -4,4 +4,4 @@ bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.2
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.0
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.0
|
||||||
bld.repositories=MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.version=1.7.2
|
bld.version=1.7.5
|
||||||
|
|
|
@ -45,9 +45,9 @@ public class PropertyFileBuild extends Project {
|
||||||
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
||||||
|
|
||||||
scope(compile)
|
scope(compile)
|
||||||
.include(dependency("com.uwyn.rife2", "bld", version(1, 7, 2)));
|
.include(dependency("com.uwyn.rife2", "bld", version(1, 7, 5)));
|
||||||
scope(test)
|
scope(test)
|
||||||
.include(dependency("org.jsoup", "jsoup", version(1, 16, 1)))
|
.include(dependency("org.jsoup", "jsoup", version(1, 16, 2)))
|
||||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 0)))
|
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 0)))
|
||||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 0)))
|
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 0)))
|
||||||
.include(dependency("org.assertj:assertj-joda-time:2.2.0"));
|
.include(dependency("org.assertj:assertj-joda-time:2.2.0"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue