https://github.com/skn437/skn-java-message
A Simple Message Library For Java
https://github.com/skn437/skn-java-message
gradle java library maven message
Last synced: 5 months ago
JSON representation
A Simple Message Library For Java
- Host: GitHub
- URL: https://github.com/skn437/skn-java-message
- Owner: skn437
- License: apache-2.0
- Created: 2024-03-12T06:10:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-09T09:47:57.000Z (over 1 year ago)
- Last Synced: 2025-07-24T16:43:38.725Z (11 months ago)
- Topics: gradle, java, library, maven, message
- Language: Java
- Homepage: https://javadoc.io/doc/best.skn/skn-java-message/latest/index.html
- Size: 123 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SKN Java Message Library

> Java
[](https://central.sonatype.com/artifact/best.skn/skn-java-message) [](https://javadoc.io/doc/best.skn/skn-java-message/1.3.0) [](https://opensource.org/licenses/Apache-2.0)
## **_JavaDocs:_**
### Read the Javadoc for the main API: [Message API](https://javadoc.io/doc/best.skn/skn-java-message/latest/best/skn/utils/message/Message.html)
## **_Introduction:_**
### This is a simple Java Library for notification message on console & server response
### I made this library so that I can use it in all of my java projects without writing the same codes over and over again
### The main API Class of this library is `Message` which holds 7 static methods to output notifications
## **_Details:_**
### **`Message` Class:**
- It doesn't need to be instantiated
- It has 10 static methods
- The notification modes are:
- Info message on console (It has new line character at the end)
- Info message as server response
- Info message as server mono response (Reactive)
- Success message on console (It has new line character at the end)
- Success message as server response
- Success message as server mono response (Reactive)
- Error message on console (It has new line character at the end)
- Error message as server response
- Error message as server mono response (Reactive)
- Instantiation Error message (Shows Java Unsupported Operation Exception)
## **_Use Case:_**
- Java
- Java Spring Boot
## **_Requirements:_**
- 💀 Minimum Java Version: `21`
## **_Usage:_**
### For `Maven`, inside `dependencies` tag of `pom.xml`, copy the following
> ```xml
>
> best.skn
> skn-java-message
> 1.3.0
>
> ```
### For `Gradle`, inside `dependencies` block of `build.gradle.kts`, copy the following
> ```kotlin
> implementation("best.skn:skn-java-message:1.3.0")
> ```
### Inside your Java Code, import the package like this
> ```java
> import best.skn.utils.message.Message;
> ```
### Use the package like this for normal cases
> ```java
> public class Cat {
> public Cat() {
> System.out.print(Message.infoConsole("Cat Class Instantiated!"));
> }
> }
> ```
### Use the package like this for `UnsupportedOperationException`
> ```java
> public class Person {
> private Person() {
> Message.throwInstantiationError();
> }
> }
> ```
## **_Dedicated To:_**
- 👩🎨`Prodipta Das Logno` & 🧛♀️`Atoshi Sarker Prithula`: The two most special ladies of my life. My best wishes will always be with you two. May you two always be happy.
- 💯`My Parents`: The greatest treasures of my life ever.
## **_License:_**
Copyright (C) 2024 SKN Shukhan
Licensed under the Apache License, Version 2.0