-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kennedykori/release-1.2.0
Release 1.2.0
- Loading branch information
Showing
5 changed files
with
1,082 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | ||
|
||
group = 'com.kori_47' | ||
version = '1.1.0' | ||
version = '1.2.0' | ||
|
||
repositories { | ||
// Use jcenter for resolving dependencies. | ||
|
@@ -78,7 +78,6 @@ def pomConfig = { | |
email '[email protected]' | ||
} | ||
} | ||
|
||
scm { | ||
url 'https://github.com/kennedykori/JavaUtils' | ||
} | ||
|
@@ -91,11 +90,11 @@ publishing { | |
// Attach sources and javadoc Jars to the main maven publication | ||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
groupId 'com.kori_47' | ||
artifactId 'utils' | ||
version '1.1.0' | ||
version '1.2.0' | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
root.appendNode('description', 'This library contains a utility class that is composed of static methods that can be used for checking and validation of both objects and primitives.') | ||
|
@@ -112,32 +111,32 @@ bintray { | |
key = System.getenv('BINTRAY_KEY') | ||
publications = ['UtilsPublication'] | ||
pkg { | ||
repo = 'kori_47' | ||
name = 'utils' | ||
desc = 'This library contains a utility class that is composed of static methods that can be used for checking and validation of both objects and primitives.' | ||
websiteUrl = 'https://github.com/kennedykori/JavaUtils' | ||
issueTrackerUrl = 'https://github.com/kennedykori/JavaUtils/issues' | ||
vcsUrl = 'https://github.com/kennedykori/JavaUtils.git' | ||
licenses = ['MIT'] | ||
labels = ['java', 'utils', 'utility'] | ||
publicDownloadNumbers = true | ||
githubRepo = 'kennedykori/JavaUtils' | ||
githubReleaseNotesFile = 'doc-files/release-notes-1.1.0.md' | ||
version { | ||
name = '1.1.0' | ||
desc = 'Utils 1.1.0' | ||
released = new Date() | ||
vcsTag = '1.1.0' | ||
// GPG Signing | ||
gpg { | ||
repo = 'kori_47' | ||
name = 'utils' | ||
desc = 'This library contains a utility class that is composed of static methods that can be used for checking and validation of both objects and primitives.' | ||
websiteUrl = 'https://github.com/kennedykori/JavaUtils' | ||
issueTrackerUrl = 'https://github.com/kennedykori/JavaUtils/issues' | ||
vcsUrl = 'https://github.com/kennedykori/JavaUtils.git' | ||
licenses = ['MIT'] | ||
labels = ['java', 'utils', 'utility'] | ||
publicDownloadNumbers = true | ||
|
||
githubRepo = 'kennedykori/JavaUtils' | ||
githubReleaseNotesFile = 'doc-files/release-notes-1.2.0.md' | ||
|
||
version { | ||
name = '1.2.0' | ||
desc = 'Utils 1.2.0' | ||
released = new Date() | ||
vcsTag = '1.2.0' | ||
// GPG Signing | ||
gpg { | ||
sign = true | ||
} | ||
// Maven Central Sync | ||
mavenCentralSync { | ||
sync = true | ||
} | ||
} | ||
} | ||
// Maven Central Sync | ||
mavenCentralSync { | ||
sync = true | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Java Utils v1.2.0 | ||
|
||
## Introduction | ||
|
||
The following notes describe important changes and information about this release. | ||
|
||
## Upgrade Instructions | ||
|
||
For [gradle](https://gradle.org/) users, switch to version 1.2.0 by updating your `build.gradle` | ||
dependencies to: | ||
|
||
```gradle | ||
dependencies { | ||
api 'com.kori_47:utils:1.2.0' | ||
// other dependencies | ||
} | ||
``` | ||
|
||
For maven users, update your `pom` file to: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.kori_47</groupId> | ||
<artifactId>utils</artifactId> | ||
<version>1.2.0</version> | ||
<type>pom</type> | ||
</dependency> | ||
``` | ||
|
||
### Compatibility Notes | ||
|
||
This release was tested on Java 8 and is expected to work well on Java 8 and later versions. | ||
It may or may not work on earlier versions of Java. | ||
|
||
This version was tested with [junit 5](https://junit.org/junit5/). | ||
|
||
## What's New | ||
|
||
The following static utility methods were added in these release: | ||
|
||
* Methods for checking if a number is equal to a given base value. | ||
* Methods for validating if a number is equal to a given base value. | ||
|
||
The utility methods above can be divided into _checkers_ and _validators_. | ||
|
||
### Checkers | ||
|
||
These are methods that take a value and check if it meets a given condition and if so, | ||
returns `true`, else, returns `false`. These methods are: | ||
|
||
1. *__isEqualTo__* | ||
|
||
This are methods that check if a number is equal to a given baseValue. These methods | ||
have the following form: | ||
|
||
```java | ||
public final static boolean isEqualTo(<type> baseValue, <type> value){ /* method body */ }; | ||
``` | ||
|
||
There are five variants of the method above, where `<type>` can be one of the following: `int`, | ||
`long`, `float`, `double` or `java.math.BigDecimal`. | ||
|
||
### Validators | ||
|
||
These are methods that take a value and validate if it meets a given condition and if so, | ||
returns the value, else, throws a `java.lang.IllegalArgumentException`. These methods are: | ||
|
||
1. *__requireEqualTo__* | ||
|
||
This are methods that validate if a number is equal to a given baseValue. These methods | ||
have the following form: | ||
|
||
```java | ||
public final static <type> requireEqualTo(<type> baseValue, <type> value){ /* method body */ }; | ||
``` | ||
|
||
There are five variants of the method above, where `<type>` can be one of the following: `int`, | ||
`long`, `float`, `double` or `java.math.BigDecimal`. | ||
|
||
## Reporting Problems | ||
|
||
If you find a problem with this release, please file a bug on [GitHub Issues](https://github.com/kennedykori/JavaUtils/issues). |
Oops, something went wrong.