diff --git a/README.md b/README.md
index 977b02f..390c201 100755
--- a/README.md
+++ b/README.md
@@ -1,7 +1,6 @@
# StateMachine
[](https://circleci.com/gh/Tinder/StateMachine)
-[](https://jitpack.io/#tinder/statemachine)
A Kotlin DSL for finite state machine.
@@ -90,29 +89,22 @@ Thanks to @nvinayshetty, you can visualize your state machines right in the IDE
### Download
-While we are working on Bintray support, `StateMachine` is available via [JitPack][jitpack].
+`StateMachine` is available in Maven Central.
+
+Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
##### Maven:
```xml
-
- jitpack.io
- https://jitpack.io
-
- com.github.tinder
+ com.tinder.statemachine
statemachine
- 0.1.2
+ 0.2.0
```
##### Gradle:
```groovy
-repositories {
- // ...
- maven { url "https://jitpack.io" }
-}
-
-implementation 'com.github.tinder:statemachine:0.1.2'
+implementation 'com.tinder.statemachine:statemachine:0.2.0'
```
### License
@@ -144,4 +136,4 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
~~~
[latest-jar]: https://tinder.com/
-[jitpack]: https://jitpack.io/#tinder/statemachine
+[snap]: https://oss.sonatype.org/content/repositories/snapshots/
diff --git a/build.gradle b/build.gradle
index ee0ca08..bbc6c51 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,15 +3,18 @@ buildscript {
repositories {
mavenCentral()
+ jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ classpath 'com.vanniktech:gradle-maven-publish-plugin:0.8.0'
}
}
-group 'com.tinder'
-version '0.0.1'
+group GROUP
+version VERSION_NAME
+apply plugin: 'com.vanniktech.maven.publish'
apply plugin: 'kotlin'
repositories {
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..fb25101
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,18 @@
+GROUP=com.tinder.statemachine
+VERSION_NAME=0.2.0
+
+POM_DESCRIPTION=A Kotlin DSL for finite state machine
+POM_URL=https://github.com/Tinder/StateMachine
+POM_SCM_URL=https://github.com/Tinder/StateMachine
+POM_SCM_CONNECTION=scm:git:git://github.com/Tinder/StateMachine.git
+POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/Tinder/StateMachine.git
+POM_LICENCE_NAME=BSD 3-Clause "New" or "Revised" License
+POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause
+POM_LICENCE_DIST=repo
+POM_DEVELOPER_ID=Tinder
+POM_DEVELOPER_NAME=Tinder Open Source
+
+POM_ARTIFACT_ID=statemachine
+POM_NAME=StateMachine
+POM_PACKAGING=jar
+