Skip to content

Commit

Permalink
Merge pull request #24 from anastaciocintra/maven-central
Browse files Browse the repository at this point in the history
Maven central
  • Loading branch information
anastaciocintra authored Oct 8, 2019
2 parents 3aecf1e + a4a2362 commit a358421
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 75 deletions.
27 changes: 6 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,11 @@ Download code and binaries from the [last release of escpos-coffee](https://gith

### Installation with Maven

Step 1. Add the repository to your build file
```xml
<repositories>
<repository>
<id>anastaciocintra-public</id>
<url>https://packagecloud.io/anastaciocintra/public/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
```
Step 2. Add the dependency
```xml
<dependency>
<groupId>com.github.anastaciocintra</groupId>
<artifactId>escpos-coffee</artifactId>
<version>2.0.0</version>
<version>3.0.0</version>
</dependency>
```

Expand All @@ -64,14 +48,15 @@ Step 2. Add the dependency
Step 1. Add the repository to your build file
```groovy
repositories {
maven {
url "https://packagecloud.io/anastaciocintra/public/maven2"
}
mavenCentral()
}
```

Step 2. Add the dependency
```groovy
compile 'com.github.anastaciocintra:escpos-coffee:2.0.0'
dependencies {
implementation 'com.github.anastaciocintra:escpos-coffee:3.0.0'
}
```

### Installation without Maven or Gradle
Expand Down
77 changes: 73 additions & 4 deletions escpos-coffee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

<packaging>jar</packaging>




<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -80,6 +83,21 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg.version}</version>

<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>

Expand All @@ -102,15 +120,66 @@



<name>escpos-coffee</name>
<description>
Java library for ESC/POS printer commands. Can send text, images and barcodes to the printer.
All commands are send to one OutputStream, than you can redirect to printer, file or network.
</description>
<url>https://github.com/anastaciocintra/escpos-coffee</url>

<organization>
<name>github.com/anastaciocintra</name>
<url>https://github.com/anastaciocintra</url>
</organization>

<issueManagement>
<system>GitHub</system>
<url>https://github.com/anastaciocintra/escpos-coffee/issues</url>
</issueManagement>

<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/anastaciocintra/escpos-coffee/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/anastaciocintra/escpos-coffee</url>
<connection>
scm:git:git://github.com/anastaciocintra/escpos-coffee.git
</connection>
<developerConnection>
scm:git:ssh://git@//github.com/anastaciocintra/escpos-coffee.git
</developerConnection>
</scm>

<developers>
<developer>
<name>Marco Antonio Anastacio Cintra</name>
<email>[email protected]</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
</developers>



<distributionManagement>


<repository>
<id>packagecloud.public</id>
<url>packagecloud+https://packagecloud.io/anastaciocintra/public</url>
<id>ossrh-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>packagecloud.public</id>
<url>packagecloud+https://packagecloud.io/anastaciocintra/public</url>
<id>ossrh-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>

</distributionManagement>

</project>
49 changes: 3 additions & 46 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,9 @@
<packaging>pom</packaging>


<name>escpos-coffee</name>
<description>
Java library for ESC/POS printer commands. Can send text, images and barcodes to the printer.
All commands are send to one OutputStream, than you can redirect to printer, file or network.
</description>
<url>https://github.com/anastaciocintra/escpos-coffee</url>

<organization>
<name>github.com/anastaciocintra</name>
<url>https://github.com/anastaciocintra</url>
</organization>

<issueManagement>
<system>GitHub</system>
<url>https://github.com/anastaciocintra/escpos-coffee/issues</url>
</issueManagement>

<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/anastaciocintra/escpos-coffee/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/anastaciocintra/escpos-coffee</url>
<connection>
scm:git:git://github.com/anastaciocintra/escpos-coffee.git
</connection>
<developerConnection>
scm:git:ssh://git@//github.com/anastaciocintra/escpos-coffee.git
</developerConnection>
</scm>

<developers>
<developer>
<name>Marco Antonio Anastacio Cintra</name>
<email>[email protected]</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
</developers>

<properties>
<revision>2.1.0-SNAPSHOT</revision>
<revision>3.0.0</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
Expand All @@ -70,6 +25,8 @@
<maven-install.version>3.0.0-M1</maven-install.version>
<maven-site.version>3.8.2</maven-site.version>
<maven-deploy.version>2.8.2</maven-deploy.version>
<maven-gpg.version>1.6</maven-gpg.version>



<maven-packagecloud.version>0.0.6</maven-packagecloud.version>
Expand Down
7 changes: 3 additions & 4 deletions samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

<repositories>
<repository>
<id>anastaciocintra-public</id>
<url>https://packagecloud.io/anastaciocintra/public/maven2</url>
<id>oss.sonatype.org-snapshot</id>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>true</enabled>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
Expand All @@ -48,5 +48,4 @@
</repositories>



</project>

0 comments on commit a358421

Please sign in to comment.