Skip to content

Commit

Permalink
Release 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud authored and Ruhanga committed Jul 1, 2024
1 parent 2ce6718 commit 6d1661d
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion api-2.2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>

<artifactId>initializer-api-2.2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion api-2.3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>

<artifactId>initializer-api-2.3</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion api-2.4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>initializer</artifactId>
<groupId>org.openmrs.module</groupId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion api-2.5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>initializer</artifactId>
<groupId>org.openmrs.module</groupId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion api-bahmni/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>

<artifactId>initializer-api-bahmni</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>

<artifactId>initializer-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion omod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>

<artifactId>initializer-omod</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
<packaging>pom</packaging>
<name>Initializer</name>
<description>The OpenMRS Initializer module is an API-only module that processes the content of the configuration folder when it is found inside OpenMRS' application data directory.</description>
Expand Down
14 changes: 7 additions & 7 deletions readme/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mvn clean package -P validator
3) Run it (use absolute paths for arguments):

```bash
java -jar ./validator/target/initializer-validator-2.7.0-SNAPSHOT.jar \
java -jar ./validator/target/initializer-validator-2.7.0.jar \
--config-dir=/Users/mksd/repos/openmrs-config-acme/configuration
```
4) That's it! The dry run will either pass or fail.
Expand All @@ -25,40 +25,40 @@ java -jar ./validator/target/initializer-validator-2.7.0-SNAPSHOT.jar \
### Dry run examples
##### On top of CIEL
```bash
java -jar ./validator/target/initializer-validator-2.7.0-SNAPSHOT.jar \
java -jar ./validator/target/initializer-validator-2.7.0.jar \
--config-dir=/Users/mksd/repos/openmrs-config-acme/configuration \
--ciel-file=/Users/mksd/Downloads/openmrs_concepts_2.2_20200927.sql
```
##### Skipping some domains
```bash
java -jar validator/target/initializer-validator-2.7.0-SNAPSHOT.jar \
java -jar validator/target/initializer-validator-2.7.0.jar \
--config-dir=/Users/mksd/repos/openmrs-config-acme/configuration \
--domains='!metadatasharing,privileges,roles'
```
##### Including only some domains
```bash
java -jar validator/target/initializer-validator-2.7.0-SNAPSHOT.jar \
java -jar validator/target/initializer-validator-2.7.0.jar \
--config-dir=/Users/mksd/repos/openmrs-config-acme/configuration \
--domains='concepts,locations'
```
##### Excluding some files in a domain
```bash
java -jar validator/target/initializer-validator-2.7.0-SNAPSHOT.jar \
java -jar validator/target/initializer-validator-2.7.0.jar \
--config-dir=/Users/mksd/repos/openmrs-config-acme/configuration \
--exclude.concepts='*diags*,*interventions*'
```
In the above example all 'concepts' domain files matching the [wildcard patterns](https://docs.oracle.com/cd/E23389_01/doc.11116/e21038/conditions.htm#BABEJGAH) `*diags*` and `*interventions*` will be filtered out.
##### Unsafe mode
```bash
java -jar ./validator/target/initializer-validator-2.7.0-SNAPSHOT.jar \
java -jar ./validator/target/initializer-validator-2.7.0.jar \
--config-dir=/Users/mksd/repos/openmrs-config-acme/configuration --unsafe
```
The unsafe mode will break as soon as the first loading error occurs, triggering the validation to stop short. This mode is particularly suitable for CI processes that just need to fail early.
##### CLI arguments
Just run the fatjar with no arguments (or with the `--help` argument) to get a list of all possible options:

```bash
java -jar validator/target/initializer-validator-2.7.0-SNAPSHOT.jar
java -jar validator/target/initializer-validator-2.7.0.jar
```
#### Note
Make sure to have the Docker Engine installed before running the validator. Please refer to the [installation docs](https://docs.docker.com/engine/install) for details.
2 changes: 1 addition & 1 deletion validator-first-dependency/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>

<artifactId>initializer-validator-first-dependency</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion validator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>
<version>2.7.0-SNAPSHOT</version>
<version>2.7.0</version>
</parent>

<artifactId>initializer-validator</artifactId>
Expand Down

1 comment on commit 6d1661d

@ibacher
Copy link
Member

@ibacher ibacher commented on 6d1661d Jul 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what's the process for actually getting this published to Maven?

Please sign in to comment.