Skip to content

Commit 1672be6

Browse files
committed
changing groupId:artifactId to org.everit.expression:org.everit.expression.json.schema, package names modified too
1 parent c66cec6 commit 1672be6

36 files changed

+155
-123
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ before_install:
88
- export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
99
- export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
1010
- brew install jdk
11-
- export JAVA_HOME=/home/travis/.linuxbrew/Cellar/jdk/1.8.0-60
11+
- export JAVA_HOME=/home/travis/.linuxbrew/Cellar/jdk/1.8.0-45

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ import org.everit.jsonvalidator.loader.SchemaLoader;
1313
import org.json.JSONObject;
1414
import org.json.JSONTokener;
1515
// ...
16-
JSONObject rawSchema = new JSONObject(new JSONTokener(getClass().getResourceAsStream("/path/to/your/schema.json")));
17-
Schema schema = SchemaLoader.load(rawSchema);
18-
schema.validate(new JSONObject("{\"hello\" : \"world\"}")); // throws a ValidationException if this object is invalid
16+
try (InputStream inputStream = getClass().getResourceAsStream("/path/to/your/schema.json")) {
17+
JSONObject rawSchema = new JSONObject(new JSONTokener(inputStream));
18+
Schema schema = SchemaLoader.load(rawSchema);
19+
schema.validate(new JSONObject("{\"hello\" : \"world\"}")); // throws a ValidationException if this object is invalid
20+
}
1921
```
2022

2123

core/pom.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
<modelVersion>4.0.0</modelVersion>
2323

2424
<parent>
25-
<groupId>org.everit</groupId>
26-
<artifactId>org.everit.jsonvalidator.parent</artifactId>
27-
<version>1.0.0</version>
25+
<groupId>org.everit.config</groupId>
26+
<artifactId>org.everit.config.oss</artifactId>
27+
<version>6.0.7</version>
2828
</parent>
2929

30-
<artifactId>org.everit.jsonvalidator</artifactId>
30+
<groupId>org.everit.expression</groupId>
31+
<artifactId>org.everit.expression.json.schema</artifactId>
32+
<version>1.0.0</version>
3133

3234
<packaging>bundle</packaging>
3335

@@ -72,8 +74,8 @@
7274
*
7375
</Import-Package>
7476
<Export-Package>
75-
org.everit.jsonvalidator;version=${project.version},
76-
org.everit.jsonvalidator.loader;version=${project.version}
77+
${project.artifactId};version=${project.version},
78+
${project.artifactId}.loader;version=${project.version}
7779
</Export-Package>
7880
</instructions>
7981
</configuration>

core/src/main/java/org/everit/jsonvalidator/ArraySchema.java renamed to core/src/main/java/org/everit/expression/json/schema/ArraySchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.everit.jsonvalidator;
16+
package org.everit.expression.json.schema;
1717

1818
import java.util.ArrayList;
1919
import java.util.Collection;

core/src/main/java/org/everit/jsonvalidator/BooleanSchema.java renamed to core/src/main/java/org/everit/expression/json/schema/BooleanSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.everit.jsonvalidator;
16+
package org.everit.expression.json.schema;
1717

1818
/**
1919
* Boolean schema validator.

core/src/main/java/org/everit/jsonvalidator/CombinedSchema.java renamed to core/src/main/java/org/everit/expression/json/schema/CombinedSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.everit.jsonvalidator;
16+
package org.everit.expression.json.schema;
1717

1818
import java.util.ArrayList;
1919
import java.util.Collection;

core/src/main/java/org/everit/jsonvalidator/EmptySchema.java renamed to core/src/main/java/org/everit/expression/json/schema/EmptySchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.everit.jsonvalidator;
16+
package org.everit.expression.json.schema;
1717

1818
/**
1919
* A schema not specifying any restrictions, ie. accepting any values.

core/src/main/java/org/everit/jsonvalidator/EnumSchema.java renamed to core/src/main/java/org/everit/expression/json/schema/EnumSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.everit.jsonvalidator;
16+
package org.everit.expression.json.schema;
1717

1818
import java.util.Collections;
1919
import java.util.HashSet;

core/src/main/java/org/everit/jsonvalidator/NotSchema.java renamed to core/src/main/java/org/everit/expression/json/schema/NotSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.everit.jsonvalidator;
16+
package org.everit.expression.json.schema;
1717

1818
import java.util.Objects;
1919

core/src/main/java/org/everit/jsonvalidator/NullSchema.java renamed to core/src/main/java/org/everit/expression/json/schema/NullSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.everit.jsonvalidator;
16+
package org.everit.expression.json.schema;
1717

1818
import org.json.JSONObject;
1919

0 commit comments

Comments
 (0)