Skip to content

Commit

Permalink
publish version
Browse files Browse the repository at this point in the history
  • Loading branch information
abranhe committed Jul 26, 2018
1 parent ec5bc85 commit 289a259
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -19,6 +19,7 @@
*.tar.gz
*.rar


# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

Expand All @@ -44,3 +45,4 @@ nbproject/*
*.swp
*.DS_Store
*.lock
*pom.xml.versionsBackup
4 changes: 0 additions & 4 deletions .travis.yml
Expand Up @@ -13,10 +13,6 @@ script:
after_success:
- curl -s https://raw.githubusercontent.com/19cah/hack/master/travis/success | bash -s

cache:
directories:
- ~/.m2/repository

branches:
only:
- master
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -3,8 +3,9 @@
</p>

<p align="center">
<a href="#"><img src="https://maven-badges.herokuapp.com/maven-central/com.abranhe/bigdecimal/badge.svg"></a>
<a href="#"><img src="#"></a>
<a href="https://github.com/abranhe"><img src="https://abranhe.com/badge.svg"></a>
<!-- <a href="https://maven-badges.herokuapp.com/maven-central/com.abranhe.easymath/EasyMathBigDecimal/badge.svg"><img src="#"></a> -->
<a href="https://cash.me/$abranhe"><img src="https://cdn.abraham.gq/badges/cash-me.svg"></a>
<a href="https://www.patreon.com/abranhe"><img src="https://cdn.abraham.gq/badges/patreon.svg" /></a>
<a href="https://github.com/abranhe/bigdecimal/blob/master/LICENSE"><img src="https://img.shields.io/github/license/abranhe/bigdecimal.svg" /></a>
Expand Down
58 changes: 53 additions & 5 deletions pom.xml
Expand Up @@ -4,8 +4,8 @@

<groupId>com.abranhe</groupId>
<artifactId>bigdecimal</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.1</version>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -83,6 +83,56 @@
</license>
</licenses>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand Down Expand Up @@ -121,6 +171,4 @@
<scope>test</scope>
</dependency>
</dependencies>


</project>
</project>
11 changes: 3 additions & 8 deletions src/main/java/com/abranhe/bigdecimal/Operations.java
Expand Up @@ -86,15 +86,10 @@ public static BigDecimal divide(BigDecimal x, BigDecimal y, int scale, RoundingM
/**
* Default division between two BigDecimal numbers
*
* <table border>
* <th align=center colspan=3>Default Values</th>
*
* <tr valign=top>
* <th align=left>Parameter</th> <th>Description</th><th>Default</th>
* <tr align=left><td>Source</td> <td>Scale of the BigDecimal quotient to be returned</td> <td>5</td>
* <tr align=left><td>{@link java.math.RoundingMode}</td> <td>Rounding mode to apply</td> <td>CEILING</td>
* </table>
* <b>Default Values</b>
*
* Source: 5
* {@link java.math.RoundingMode}: CEILING
*
* @param x Big decimal number
* @param y Big decimal number
Expand Down

0 comments on commit 289a259

Please sign in to comment.