Skip to content

Commit 0bbd0c8

Browse files
author
Aaron He
authored
Merge pull request #18 from aaronhe42/ahe/publish-maven-central
Publish statemachine to maven central
2 parents e45485d + 94646a4 commit 0bbd0c8

File tree

3 files changed

+30
-17
lines changed

3 files changed

+30
-17
lines changed

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# StateMachine
22

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

65
A Kotlin DSL for finite state machine.
76

@@ -90,29 +89,22 @@ Thanks to @nvinayshetty, you can visualize your state machines right in the IDE
9089

9190
### Download
9291

93-
While we are working on Bintray support, `StateMachine` is available via [JitPack][jitpack].
92+
`StateMachine` is available in Maven Central.
93+
94+
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
9495

9596
##### Maven:
9697
```xml
97-
<repository>
98-
<id>jitpack.io</id>
99-
<url>https://jitpack.io</url>
100-
</repository>
10198
<dependency>
102-
<groupId>com.github.tinder</groupId>
99+
<groupId>com.tinder.statemachine</groupId>
103100
<artifactId>statemachine</artifactId>
104-
<version>0.1.2</version>
101+
<version>0.2.0</version>
105102
</dependency>
106103
```
107104

108105
##### Gradle:
109106
```groovy
110-
repositories {
111-
// ...
112-
maven { url "https://jitpack.io" }
113-
}
114-
115-
implementation 'com.github.tinder:statemachine:0.1.2'
107+
implementation 'com.tinder.statemachine:statemachine:0.2.0'
116108
```
117109

118110
### License
@@ -144,4 +136,4 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
144136
~~~
145137

146138
[latest-jar]: https://tinder.com/
147-
[jitpack]: https://jitpack.io/#tinder/statemachine
139+
[snap]: https://oss.sonatype.org/content/repositories/snapshots/

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ buildscript {
33

44
repositories {
55
mavenCentral()
6+
jcenter()
67
}
78
dependencies {
89
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
10+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.8.0'
911
}
1012
}
1113

12-
group 'com.tinder'
13-
version '0.0.1'
14+
group GROUP
15+
version VERSION_NAME
1416

17+
apply plugin: 'com.vanniktech.maven.publish'
1518
apply plugin: 'kotlin'
1619

1720
repositories {

gradle.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
GROUP=com.tinder.statemachine
2+
VERSION_NAME=0.2.0
3+
4+
POM_DESCRIPTION=A Kotlin DSL for finite state machine
5+
POM_URL=https://github.com/Tinder/StateMachine
6+
POM_SCM_URL=https://github.com/Tinder/StateMachine
7+
POM_SCM_CONNECTION=scm:git:git://github.com/Tinder/StateMachine.git
8+
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/Tinder/StateMachine.git
9+
POM_LICENCE_NAME=BSD 3-Clause "New" or "Revised" License
10+
POM_LICENCE_URL=https://opensource.org/licenses/BSD-3-Clause
11+
POM_LICENCE_DIST=repo
12+
POM_DEVELOPER_ID=Tinder
13+
POM_DEVELOPER_NAME=Tinder Open Source
14+
15+
POM_ARTIFACT_ID=statemachine
16+
POM_NAME=StateMachine
17+
POM_PACKAGING=jar
18+

0 commit comments

Comments
 (0)