Skip to content

Commit 289a259

Browse files
committed
publish version
1 parent ec5bc85 commit 289a259

File tree

5 files changed

+60
-18
lines changed

5 files changed

+60
-18
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*.tar.gz
2020
*.rar
2121

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

@@ -44,3 +45,4 @@ nbproject/*
4445
*.swp
4546
*.DS_Store
4647
*.lock
48+
*pom.xml.versionsBackup

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ script:
1313
after_success:
1414
- curl -s https://raw.githubusercontent.com/19cah/hack/master/travis/success | bash -s
1515

16-
cache:
17-
directories:
18-
- ~/.m2/repository
19-
2016
branches:
2117
only:
2218
- master

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
</p>
44

55
<p align="center">
6+
<a href="#"><img src="https://maven-badges.herokuapp.com/maven-central/com.abranhe/bigdecimal/badge.svg"></a>
7+
<a href="#"><img src="#"></a>
68
<a href="https://github.com/abranhe"><img src="https://abranhe.com/badge.svg"></a>
7-
<!-- <a href="https://maven-badges.herokuapp.com/maven-central/com.abranhe.easymath/EasyMathBigDecimal/badge.svg"><img src="#"></a> -->
89
<a href="https://cash.me/$abranhe"><img src="https://cdn.abraham.gq/badges/cash-me.svg"></a>
910
<a href="https://www.patreon.com/abranhe"><img src="https://cdn.abraham.gq/badges/patreon.svg" /></a>
1011
<a href="https://github.com/abranhe/bigdecimal/blob/master/LICENSE"><img src="https://img.shields.io/github/license/abranhe/bigdecimal.svg" /></a>

pom.xml

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
<groupId>com.abranhe</groupId>
66
<artifactId>bigdecimal</artifactId>
7-
<version>1.0-SNAPSHOT</version>
8-
7+
<version>1.0.1</version>
8+
99
<build>
1010
<plugins>
1111
<plugin>
@@ -83,6 +83,56 @@
8383
</license>
8484
</licenses>
8585

86+
<profiles>
87+
<profile>
88+
<id>release</id>
89+
<build>
90+
<plugins>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-source-plugin</artifactId>
94+
<version>2.2.1</version>
95+
<executions>
96+
<execution>
97+
<id>attach-sources</id>
98+
<goals>
99+
<goal>jar-no-fork</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-javadoc-plugin</artifactId>
107+
<version>2.9.1</version>
108+
<executions>
109+
<execution>
110+
<id>attach-javadocs</id>
111+
<goals>
112+
<goal>jar</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-gpg-plugin</artifactId>
120+
<version>1.5</version>
121+
<executions>
122+
<execution>
123+
<id>sign-artifacts</id>
124+
<phase>verify</phase>
125+
<goals>
126+
<goal>sign</goal>
127+
</goals>
128+
</execution>
129+
</executions>
130+
</plugin>
131+
</plugins>
132+
</build>
133+
</profile>
134+
</profiles>
135+
86136
<distributionManagement>
87137
<snapshotRepository>
88138
<id>ossrh</id>
@@ -121,6 +171,4 @@
121171
<scope>test</scope>
122172
</dependency>
123173
</dependencies>
124-
125-
126-
</project>
174+
</project>

src/main/java/com/abranhe/bigdecimal/Operations.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,10 @@ public static BigDecimal divide(BigDecimal x, BigDecimal y, int scale, RoundingM
8686
/**
8787
* Default division between two BigDecimal numbers
8888
*
89-
* <table border>
90-
* <th align=center colspan=3>Default Values</th>
91-
*
92-
* <tr valign=top>
93-
* <th align=left>Parameter</th> <th>Description</th><th>Default</th>
94-
* <tr align=left><td>Source</td> <td>Scale of the BigDecimal quotient to be returned</td> <td>5</td>
95-
* <tr align=left><td>{@link java.math.RoundingMode}</td> <td>Rounding mode to apply</td> <td>CEILING</td>
96-
* </table>
89+
* <b>Default Values</b>
9790
*
91+
* Source: 5
92+
* {@link java.math.RoundingMode}: CEILING
9893
*
9994
* @param x Big decimal number
10095
* @param y Big decimal number

0 commit comments

Comments
 (0)