Skip to content

Commit

Permalink
chore!: change project base package name (#7)
Browse files Browse the repository at this point in the history
Change the project base package name from `com.kori_47.utils` to
`io.github.kennedykori.utils`. This will satisfy
[this requirement](https://central.sonatype.org/publish/requirements/coordinates/#choose-your-coordinates)
necessary to publish the project on [Maven Central](https://central.sonatype.org/).

BREAKING CHANGE: change base package name from `com.kori_47.utils` to `io.github.kennedykori.utils`.

This change has been necessitated by the
[shutdown of Bintray](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/).
As such, the project will be migrating to Maven Central as the primary
hosting platform for the project binaries. Maven Central is a more
stable hosting service. Hopefully, this will result in a better and
more reliable experience.

This change addresses issue #13.

A change of the base package name is a breaking change and will result in a new major release.

**Migrate from v1.x.x to v2.x.x**

Change the import statement as follows:

```diff
-import static com.kori_47.utils.ObjectUtils.*;
+import static io.github.kennedykori.utils.ObjectUtils.*;
```

That's it. The library API remains the same.
  • Loading branch information
kennedykori committed Jan 13, 2024
1 parent 2589794 commit f77a5e1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies {
### Ivy
```xml
<dependency org='com.kori_47' name='utils' rev='1.2.0'>
<artifact name='utils' ext='pom' ></artifactId>
<artifact name='utils' ext='pom'/>
</dependency>
```

Expand All @@ -79,7 +79,7 @@ Import the ObjectsUtils class in your code and use it's static methods to check
**Example 1:**

```java
import static com.kori_47.utils.ObjectUtils.*;
import static io.github.kennedykori.utils.ObjectUtils.*;

public class Person {

Expand All @@ -100,7 +100,7 @@ public class Person {
**Example 2:**

```java
import static com.kori_47.utils.ObjectUtils.*;
import static io.github.kennedykori.utils.ObjectUtils.*;

public class Address {

Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* User Manual available at https://docs.gradle.org/5.6.1/userguide/java_library_plugin.html
*/

project.group = "com.kori_47"
project.version = "1.2.0"
project.group = "io.github.kennedykori"
project.version = "2.0.0"

plugins {
// Apply the java-library plugin to add support for Java Library
Expand Down Expand Up @@ -44,7 +44,7 @@ java {
tasks.jar {
manifest {
attributes(mapOf(
"Automatic-Module-Name" to "com.kori_47.jutils",
"Automatic-Module-Name" to "io.github.kennedykori.utils",
"Implementation-Title" to project.name,
"Implementation-Version" to project.version))
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
*
*/
package com.kori_47.utils;
package io.github.kennedykori.utils;

import static java.util.Objects.isNull;
import static java.util.Objects.nonNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
*
* @since Sep 9, 2019, 6:24:35 PM
*/
package com.kori_47.utils;
package io.github.kennedykori.utils;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.kori_47.utils;
package io.github.kennedykori.utils;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
Expand Down

0 comments on commit f77a5e1

Please sign in to comment.