Skip to content

Commit

Permalink
Release v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Link committed Oct 7, 2017
1 parent a8b680b commit 849b1a5
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 8 deletions.
31 changes: 31 additions & 0 deletions DEPLOYING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Setup

Create `~/.gradle/gradle.properties`

```
cropsterNexusUser=
cropsterNexusPass=
```

# Build

```
./gradlew clean build
```


# Publish local

Puts the jar in ~/.m2

```
./gradlew publishToMavenLocal
```


# Publish version

```
./gradlew upload
```

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,29 @@ we will add them to this library. We welcome PRs filling in new features.

## Setup

> **Note:** This artifact isn't published to the public Maven repo yet.
> Interested in using it? Please contact us by opening an issue.
Grab via Maven:
```xml
<dependency>
<groupId>com.cropster</groupId>
<artifactId>capsulecrm-api</artifactId>
<version>0.1-SNAPSHOT</version>
<version>0.1</version>
</dependency>
```

or Gradle:

```groovy
compile 'com.cropster:capsulecrm-api:0.1-SNAPSHOT'
```gradle
compile 'com.cropster:capsulecrm-api:0.1'
```

### Requirements

* Java 8
* Capsule CRM API Credentials


The SDK uses [Retrofit 2][2] under the hood as a REST client, which uses OkHttp as the underlying http client.

## Usage
Expand Down
28 changes: 24 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@ plugins {
id 'java'
}

repositories {
maven {
name 'cropster-nexus'
url 'https://nexus.cropster.xyz/repository/cropster'
}
}

group 'com.cropster'
version '0.1-SNAPSHOT'
version '0.1'

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'maven'
apply plugin: 'maven-publish'


Expand Down Expand Up @@ -73,9 +80,22 @@ compileTestJava {
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://nexus.cropster.xyz/repository/cropster") {
authentication(userName: cropsterNexusUser, password: cropsterNexusPassword)
}
snapshotRepository(url: "https://nexus.cropster.xyz/repository/cropster-snapshots") {
authentication(userName: cropsterNexusUser, password: cropsterNexusPassword)
}
}
}
}

0 comments on commit 849b1a5

Please sign in to comment.