Skip to content

Commit

Permalink
Merge pull request #18 from aaronhe42/ahe/publish-maven-central
Browse files Browse the repository at this point in the history
Publish statemachine to maven central
  • Loading branch information
Aaron He authored Jun 20, 2019
2 parents e45485d + 94646a4 commit 0bbd0c8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 17 deletions.
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# StateMachine

[![CircleCI](https://circleci.com/gh/Tinder/StateMachine.svg?style=svg)](https://circleci.com/gh/Tinder/StateMachine)
[![Release](https://jitpack.io/v/tinder/statemachine.svg)](https://jitpack.io/#tinder/statemachine)

A Kotlin DSL for finite state machine.

Expand Down Expand Up @@ -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
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.tinder</groupId>
<groupId>com.tinder.statemachine</groupId>
<artifactId>statemachine</artifactId>
<version>0.1.2</version>
<version>0.2.0</version>
</dependency>
```

##### 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
Expand Down Expand Up @@ -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/
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
18 changes: 18 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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://[email protected]/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

0 comments on commit 0bbd0c8

Please sign in to comment.