Compare commits

..

No commits in common. "master" and "1.0.1-t1.2" have entirely different histories.

7 changed files with 26 additions and 64 deletions

View file

@ -23,9 +23,9 @@ jobs:
packages: write packages: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v2
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v3 uses: actions/setup-java@v2
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
@ -33,14 +33,14 @@ jobs:
settings-path: ${{ github.workspace }} # location for the settings.xml file settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Gradle - name: Build with Gradle
uses: gradle/gradle-build-action@8f08e41675472b8aa0aa2c356e8b2c1561af3bf9 uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with: with:
arguments: build arguments: build
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in # The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle # the publishing section of your build.gradle
- name: Publish to GitHub Packages - name: Publish to GitHub Packages
uses: gradle/gradle-build-action@8f08e41675472b8aa0aa2c356e8b2c1561af3bf9 uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with: with:
arguments: publish arguments: publish
env: env:

View file

@ -16,9 +16,9 @@ jobs:
packages: write packages: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v2
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v3 uses: actions/setup-java@v2
with: with:
distribution: 'temurin' # See 'Supported distributions' for available options distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17' java-version: '17'

View file

@ -6,6 +6,7 @@
<sourceOutputDir name="target/generated-sources/annotations" /> <sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" /> <outputRelativeToContentRoot value="true" />
<module name="JColorfulConsole" />
</profile> </profile>
</annotationProcessing> </annotationProcessing>
<bytecodeTargetLevel> <bytecodeTargetLevel>

View file

@ -1,7 +0,0 @@
pull_request_rules:
- name: Automatic merge on approval
conditions:
- "#approved-reviews-by>=1"
actions:
merge:
method: merge

View file

@ -12,47 +12,29 @@
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=Anas-Elgarhy_JColorfulConsole&metric=bugs)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=Anas-Elgarhy_JColorfulConsole&metric=bugs)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole)
## Features: ## Features:
- Support text color.
- Support text color. - Support background color.
- Support background color. - Support 256 colors (RGB).
- Support 256 colors (RGB). - Support ANSI colors.
- Support ANSI colors. - Support indexed colors.
- Support indexed colors. - Support text style.
- Support text style. - Lightweight and fast.
- Lightweight and fast. - Easy to use.
- Easy to use.
## How to add this library into your project ## How to add this library into your project
### Maven ### Maven
**Step 1**. Add the dependency
**Step 1**. Add the JitPack repository to your build file
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```
**Step 2**. Add the dependency
```xml ```xml
<dependency> <dependency>
<groupId>com.github.0x61nas</groupId> <groupId>com.anas.jcolorfulconsole</groupId>
<artifactId>JColorfulConsole</artifactId> <artifactId>jcolorfulconsole</artifactId>
<version>1.0.4</version> <version>1.0.1</version>
</dependency> </dependency>
``` ```
#### Gradle: #### Gradle:
**Step 1**. Add the JitPack repository to your build file<br> **Step 1**. Add the JitPack repository to your build file<br>
*Add it in your root build.gradle at the end of repositories:* *Add it in your root build.gradle at the end of repositories:*
```gradle ```gradle
allprojects { allprojects {
repositories { repositories {
@ -61,12 +43,10 @@ allprojects {
} }
} }
``` ```
**Step 2**. Add the dependency **Step 2**. Add the dependency
```gradle ```gradle
dependencies { dependencies {
implementation 'com.github.0x61nas:JColorfulConsole:1.0.4' implementation 'com.github.Anas-Elgarhy:JColorfulConsole:1.0.1'
} }
``` ```
@ -92,7 +72,6 @@ public class Example1 {
} }
} }
``` ```
![Result of example 1](./Screenshots/1.0.1-example1.png) ![Result of example 1](./Screenshots/1.0.1-example1.png)
```java ```java
@ -114,26 +93,19 @@ public class Example2 {
} }
} }
``` ```
![Result of example 2](./Screenshots/1.0.1-example2.gif) ![Result of example 2](./Screenshots/1.0.1-example2.gif)
## Requirements for development: ## Requirements for development:
- Maven - Maven
- jdk 17 - jdk 17
- IntelliJ IDEA (not required but recommended) - IntelliJ IDEA (not required but recommended)
## TODO ## TODO
- [ ] Add Tests - [ ] Add Tests
- [ ] Add Formatter - [ ] Add Formatter
- [ ] Add Documentation - [ ] Add Documentation
- [ ] Add more examples - [ ] Add more examples
## Projects using this library 💙
- [jls](https://github.com/Anas-Elgarhy/jls)
- [jpwd](https://github.com/Anas-Elgarhy/jpwd)
### Available in ### Available in
[![GitHub](https://img.shields.io/badge/GitHub-Main%20repo-brightgreen?style=for-the-badge&logo=GitHub)](https://github.com/Anas-Elgarhy/JColorfulConsole) [![GitHub](https://img.shields.io/badge/GitHub-Main%20repo-brightgreen?style=for-the-badge&logo=GitHub)](https://github.com/Anas-Elgarhy/JColorfulConsole)
@ -141,8 +113,10 @@ public class Example2 {
[![BitBucket](https://img.shields.io/badge/BitBucket-Mirror%20repo-brightgreen?style=for-the-badge&logo=BitBucket)](https://bitbucket.org/anas_elgarhy/jcolorfulconsole) [![BitBucket](https://img.shields.io/badge/BitBucket-Mirror%20repo-brightgreen?style=for-the-badge&logo=BitBucket)](https://bitbucket.org/anas_elgarhy/jcolorfulconsole)
[![Codeberg](https://img.shields.io/badge/Codeberg-Mirror%20repo-brightgreen?style=for-the-badge&logo=Codeberg)](https://codeberg.org/anas-elgarhy/JColorfulConsole) [![Codeberg](https://img.shields.io/badge/Codeberg-Mirror%20repo-brightgreen?style=for-the-badge&logo=Codeberg)](https://codeberg.org/anas-elgarhy/JColorfulConsole)
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=Anas-Elgarhy_JColorfulConsole)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=Anas-Elgarhy_JColorfulConsole)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole)
[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-black.svg)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole) [![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-black.svg)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole)
![License: GPL-3.0](https://img.shields.io/badge/License-GPL%203.0-blue.svg) ![License: GPL-3.0](https://img.shields.io/badge/License-GPL%203.0-blue.svg)

View file

@ -6,12 +6,12 @@
<groupId>com.anas.jcolorfulconsole</groupId> <groupId>com.anas.jcolorfulconsole</groupId>
<artifactId>jcolorfulconsole</artifactId> <artifactId>jcolorfulconsole</artifactId>
<version>1.0.4</version> <version>1.0.1-t1.2</version>
<packaging>jar</packaging> <packaging>pom</packaging>
<name>JColorfulConsole</name> <name>JColorfulConsole</name>
<description>A colorful console for Java</description> <description>A colorful console for Java</description>
<url>https://github.com/0x61na/JColorfulConsole</url> <url>https://github.com/Anas-Elgarhy/JColorfulConsole</url>
<licenses> <licenses>
@ -39,7 +39,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version> <version>3.2</version>
<configuration> <configuration>
<source>8</source> <source>8</source>
<target>8</target> <target>8</target>

View file

@ -1,6 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}