Skip to content

Commit

Permalink
moving from s.a.i to c.a.i (#113)
Browse files Browse the repository at this point in the history
Also starts depending on c.a.i:ion-java
  • Loading branch information
raganhan authored May 14, 2019
1 parent e2b9ccb commit dcd9e79
Show file tree
Hide file tree
Showing 75 changed files with 377 additions and 376 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ A reference implementation of the [Ion Schema Specification](https://amzn.github
written in Kotlin.

[![Build Status](https://travis-ci.org/amzn/ion-schema-kotlin.svg)](https://travis-ci.org/amzn/ion-schema-kotlin)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/software.amazon.ion/ion-schema-kotlin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/software.amazon.ion/ion-schema-kotlin)
[![Javadoc](https://javadoc-badge.appspot.com/software.amazon.ion/ion-schema-kotlin.svg?label=javadoc)](http://www.javadoc.io/doc/software.amazon.ion/ion-schema-kotlin)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.amazon.ion/ion-schema-kotlin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.amazon.ion/ion-schema-kotlin)
[![Javadoc](https://javadoc-badge.appspot.com/com.amazon.ion/ion-schema-kotlin.svg?label=javadoc)](http://www.javadoc.io/doc/com.amazon.ion/ion-schema-kotlin)

**This is currently alpha software and all aspects of it are subject
to change.**
Expand All @@ -21,15 +21,15 @@ Before running, replace `<base_path>` with the path containing
"/data/test".

```java
import software.amazon.ion.IonSystem;
import software.amazon.ion.IonValue;
import software.amazon.ion.system.IonSystemBuilder;
import software.amazon.ionschema.AuthorityFilesystem;
import software.amazon.ionschema.IonSchemaSystem;
import software.amazon.ionschema.IonSchemaSystemBuilder;
import software.amazon.ionschema.Schema;
import software.amazon.ionschema.Type;
import software.amazon.ionschema.Violations;
import com.amazon.ion.IonSystem;
import com.amazon.ion.IonValue;
import com.amazon.ion.system.IonSystemBuilder;
import com.amazon.ionschema.AuthorityFilesystem;
import com.amazon.ionschema.IonSchemaSystem;
import com.amazon.ionschema.IonSchemaSystemBuilder;
import com.amazon.ionschema.Schema;
import com.amazon.ionschema.Type;
import com.amazon.ionschema.Violations;

public class IonSchemaGettingStarted {
private static IonSystem ION = IonSystemBuilder.standard().build();
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
id "signing"
}

group = "software.amazon.ion"
group = "com.amazon.ion"
version = "0.8.0-SNAPSHOT"
ext.kotlin_version = "[1.3,)"

Expand All @@ -30,7 +30,7 @@ repositories {
}

dependencies {
api "software.amazon.ion:ion-java:[1.4,)"
api "com.amazon.ion:ion-java:[1.4,)"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
Expand All @@ -43,7 +43,7 @@ sourceSets {
dokka {
outputFormat = "html"
outputDirectory = "$buildDir/javadoc"
includes = ["src/software/amazon/ionschema/module.md"]
includes = ["src/com/amazon/ionschema/module.md"]
}

task sourcesJar(type: Jar) {
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Mon May 13 17:33:55 PDT 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

import software.amazon.ion.IonValue
import software.amazon.ionschema.util.CloseableIterator
import com.amazon.ion.IonValue
import com.amazon.ionschema.util.CloseableIterator

/**
* An Authority is responsible for resolving a particular class of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

import software.amazon.ion.IonValue
import software.amazon.ionschema.internal.IonSchemaSystemImpl
import software.amazon.ionschema.util.CloseableIterator
import com.amazon.ion.IonValue
import com.amazon.ionschema.internal.IonSchemaSystemImpl
import com.amazon.ionschema.util.CloseableIterator
import java.io.File
import java.io.FileReader
import java.io.Reader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

/**
* Thrown when an invalid schema definition is encountered.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

/**
* The top-level Ion Schema exception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

import software.amazon.ion.IonValue
import com.amazon.ion.IonValue

/**
* Provides methods for instantiating instances of [Schema].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

import software.amazon.ion.IonSystem
import software.amazon.ion.system.IonSystemBuilder
import software.amazon.ionschema.internal.ConstraintFactoryDefault
import software.amazon.ionschema.internal.IonSchemaSystemImpl
import com.amazon.ion.IonSystem
import com.amazon.ion.system.IonSystemBuilder
import com.amazon.ionschema.internal.ConstraintFactoryDefault
import com.amazon.ionschema.internal.IonSchemaSystemImpl

/**
* Entry point for Ion Schema. Provides a builder API for constructing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

import software.amazon.ion.IonStruct
import com.amazon.ion.IonStruct

/**
* A Schema is a collection of zero or more [Type]s.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

import software.amazon.ion.IonValue
import software.amazon.ionschema.internal.Constraint
import com.amazon.ion.IonValue
import com.amazon.ionschema.internal.Constraint

/**
* A Type consists of an optional name and zero or more constraints.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema
package com.amazon.ionschema

import software.amazon.ion.IonStruct
import software.amazon.ion.IonValue
import software.amazon.ionschema.internal.util.truncate
import com.amazon.ion.IonStruct
import com.amazon.ion.IonValue
import com.amazon.ionschema.internal.util.truncate

/**
* Indicates whether a value validated successfully against a [Type],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.IonValue
import software.amazon.ionschema.Violation
import com.amazon.ion.IonValue
import com.amazon.ionschema.Violation

/**
* Provides methods to create Violations that are common across multiple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.IonValue
import software.amazon.ionschema.Violations
import com.amazon.ion.IonValue
import com.amazon.ionschema.Violations

/**
* Represents a single constraint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.IonValue
import software.amazon.ionschema.Schema
import com.amazon.ion.IonValue
import com.amazon.ionschema.Schema

/**
* Factory for [Constraint] objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.IonValue
import software.amazon.ionschema.Schema
import software.amazon.ionschema.internal.constraint.*
import com.amazon.ion.IonValue
import com.amazon.ionschema.Schema
import com.amazon.ionschema.internal.constraint.*

/**
* Default [ConstraintFactory] implementation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.IonSystem
import software.amazon.ion.IonValue
import software.amazon.ionschema.Authority
import software.amazon.ionschema.IonSchemaException
import software.amazon.ionschema.IonSchemaSystem
import software.amazon.ionschema.Schema
import com.amazon.ion.IonSystem
import com.amazon.ion.IonValue
import com.amazon.ionschema.Authority
import com.amazon.ionschema.IonSchemaException
import com.amazon.ionschema.IonSchemaSystem
import com.amazon.ionschema.Schema

/**
* Implementation of [IonSchemaSystem].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.*
import software.amazon.ionschema.IonSchemaSystem
import software.amazon.ionschema.Schema
import software.amazon.ionschema.Type
import com.amazon.ion.*
import com.amazon.ionschema.IonSchemaSystem
import com.amazon.ionschema.Schema
import com.amazon.ionschema.Type

/**
* Provides instances of [Type] for all of the Core Types and Ion Types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal

import software.amazon.ion.IonList
import software.amazon.ion.IonString
import software.amazon.ion.IonStruct
import software.amazon.ion.IonSymbol
import software.amazon.ion.IonValue
import software.amazon.ionschema.EMPTY_ITERATOR
import software.amazon.ionschema.InvalidSchemaException
import software.amazon.ionschema.Schema
import software.amazon.ionschema.Type
package com.amazon.ionschema.internal

import com.amazon.ion.IonList
import com.amazon.ion.IonString
import com.amazon.ion.IonStruct
import com.amazon.ion.IonSymbol
import com.amazon.ion.IonValue
import com.amazon.ionschema.EMPTY_ITERATOR
import com.amazon.ionschema.InvalidSchemaException
import com.amazon.ionschema.Schema
import com.amazon.ionschema.Type

/**
* Implementation of [Schema] for all user-provided ISL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

/**
* Marker interface for the non-scalar and non-container types defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.IonStruct
import software.amazon.ion.IonValue
import software.amazon.ionschema.Schema
import software.amazon.ionschema.Violation
import software.amazon.ionschema.Violations
import software.amazon.ionschema.internal.constraint.ConstraintBase
import com.amazon.ion.IonStruct
import com.amazon.ion.IonValue
import com.amazon.ionschema.Schema
import com.amazon.ionschema.Violation
import com.amazon.ionschema.Violations
import com.amazon.ionschema.internal.constraint.ConstraintBase

/**
* Type implementation instantiated to represent built-in types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.IonSymbol
import software.amazon.ion.IonType
import software.amazon.ion.IonValue
import software.amazon.ionschema.internal.constraint.ConstraintBase
import software.amazon.ionschema.Violations
import software.amazon.ionschema.Violation
import com.amazon.ion.IonSymbol
import com.amazon.ion.IonType
import com.amazon.ion.IonValue
import com.amazon.ionschema.internal.constraint.ConstraintBase
import com.amazon.ionschema.Violations
import com.amazon.ionschema.Violation

/**
* Instantiated to represent individual Core Types as defined by the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* permissions and limitations under the License.
*/

package software.amazon.ionschema.internal
package com.amazon.ionschema.internal

import software.amazon.ion.*
import software.amazon.ion.system.IonSystemBuilder
import software.amazon.ionschema.Schema
import software.amazon.ionschema.internal.constraint.ConstraintBase
import software.amazon.ionschema.Violations
import com.amazon.ion.*
import com.amazon.ion.system.IonSystemBuilder
import com.amazon.ionschema.Schema
import com.amazon.ionschema.internal.constraint.ConstraintBase
import com.amazon.ionschema.Violations

/**
* Implementation of [Type] backed by a collection of zero or more [Constraint]s.
Expand Down
Loading

0 comments on commit dcd9e79

Please sign in to comment.