Compare commits

..

31 commits

Author SHA1 Message Date
bde4bf1a17
chore: just bump the package ver 2023-09-03 18:51:37 +03:00
mergify[bot]
a41457c5b7
Merge pull request #21 from 0x61nas/renovate/gradle-gradle-build-action-digest
chore(deps): update gradle/gradle-build-action digest to 8f08e41
2023-09-03 15:48:16 +00:00
renovate[bot]
e6badfa32a
chore(deps): update gradle/gradle-build-action digest to 8f08e41 2023-08-28 20:26:56 +00:00
mergify[bot]
3acea46f47
Merge pull request #20 from 0x61nas/renovate/gradle-gradle-build-action-digest
chore(deps): update gradle/gradle-build-action digest to a0fdbb0
2023-07-16 13:34:25 +00:00
renovate[bot]
c4fad79269
chore(deps): update gradle/gradle-build-action digest to a0fdbb0 2023-07-16 07:31:26 +00:00
mergify[bot]
63e6383d19
Merge pull request #19 from anas-elgarhy/renovate/gradle-gradle-build-action-digest
chore(deps): update gradle/gradle-build-action digest to 8e02c82
2023-06-28 19:25:14 +00:00
renovate[bot]
31f7c65988
chore(deps): update gradle/gradle-build-action digest to 8e02c82 2023-06-28 18:44:52 +00:00
mergify[bot]
f698702281
Merge pull request #18 from anas-elgarhy/renovate/gradle-gradle-build-action-digest
chore(deps): update gradle/gradle-build-action digest to 680037c
2023-05-30 20:16:22 +00:00
renovate[bot]
3a6312c931
chore(deps): update gradle/gradle-build-action digest to 680037c 2023-05-29 21:12:24 +00:00
mergify[bot]
5875c4c2fc
Merge pull request #14 from anas-elgarhy/renovate/actions-checkout-3.x
chore(deps): update actions/checkout action to v3
2023-05-03 17:58:35 +00:00
mergify[bot]
9ed7043640
Merge pull request #15 from anas-elgarhy/renovate/actions-setup-java-3.x
chore(deps): update actions/setup-java action to v3
2023-05-03 17:58:10 +00:00
mergify[bot]
6b1dc072fa
Merge pull request #17 from anas-elgarhy/renovate/gradle-gradle-build-action-digest
chore(deps): update gradle/gradle-build-action digest to a810b86
2023-05-03 17:57:15 +00:00
renovate[bot]
42c531c43f
chore(deps): update gradle/gradle-build-action digest to a810b86 2023-05-02 23:31:13 +00:00
mergify[bot]
a0007fc67e
Merge pull request #16 from anas-elgarhy/renovate/gradle-gradle-build-action-digest
chore(deps): update gradle/gradle-build-action digest to 9cf9903
2023-04-23 04:51:01 +00:00
renovate[bot]
5d5bba959f
chore(deps): update gradle/gradle-build-action digest to 9cf9903 2023-04-22 20:03:32 +00:00
mergify[bot]
b4599084bc
Merge pull request #12 from anas-elgarhy/renovate/org.apache.maven.plugins-maven-compiler-plugin-3.x
chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.11.0
2023-03-31 21:50:49 +00:00
renovate[bot]
b56d6507af
chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.11.0 2023-02-27 09:48:10 +00:00
mergify[bot]
177ce1e6e3
Merge pull request #11 from anas-elgarhy/renovate/gradle-gradle-build-action-digest
chore(deps): update gradle/gradle-build-action digest to 59d37bd
2023-02-07 13:58:48 +00:00
renovate[bot]
ae5cda307e
chore(deps): update gradle/gradle-build-action digest to 59d37bd 2023-02-07 01:38:27 +00:00
renovate[bot]
1d8ee25100
chore(deps): update actions/setup-java action to v3 2023-01-29 02:41:40 +00:00
renovate[bot]
de21d70023
chore(deps): update actions/checkout action to v3 2023-01-29 02:41:35 +00:00
mergify[bot]
0e963dd194
Merge pull request #9 from anas-elgarhy/renovate/configure
Configure Renovate
2023-01-28 22:40:49 +00:00
5f973fd178
Merge pull request #10 from anas-elgarhy/mergify/anas-elgarhy/config-update
ci(Mergify): configuration update
2023-01-29 00:40:14 +02:00
f71b63a9c8 ci(Mergify): configuration update
Signed-off-by: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
2023-01-29 00:28:42 +02:00
renovate[bot]
130881c32e
Add renovate.json 2023-01-28 21:33:10 +00:00
fabfddbb22 Add projects section 💙 2022-06-16 08:13:42 +02:00
c96b754391 Fix 2022-06-16 07:48:54 +02:00
767150be81 update the readme file 2022-06-16 07:17:00 +02:00
5cf5a3590c add jar 2022-06-16 07:15:58 +02:00
a4de946e6e update the readme file 2022-06-16 07:13:09 +02:00
f2b21cfb6b Up version ⬆️⬆️⬆️ 2022-06-16 07:07:22 +02:00
7 changed files with 64 additions and 26 deletions

View file

@ -23,9 +23,9 @@ jobs:
packages: write packages: write
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v2 uses: actions/setup-java@v3
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@0d13054264b0bb894ded474f08ebb30921341cee uses: gradle/gradle-build-action@8f08e41675472b8aa0aa2c356e8b2c1561af3bf9
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@0d13054264b0bb894ded474f08ebb30921341cee uses: gradle/gradle-build-action@8f08e41675472b8aa0aa2c356e8b2c1561af3bf9
with: with:
arguments: publish arguments: publish
env: env:

View file

@ -16,9 +16,9 @@ jobs:
packages: write packages: write
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v2 uses: actions/setup-java@v3
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,7 +6,6 @@
<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>

7
.mergify.yml Normal file
View file

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

View file

@ -12,29 +12,47 @@
[![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 background color. - Support text color.
- Support 256 colors (RGB). - Support background color.
- Support ANSI colors. - Support 256 colors (RGB).
- Support indexed colors. - Support ANSI colors.
- Support text style. - Support indexed colors.
- Lightweight and fast. - Support text style.
- Easy to use. - Lightweight and fast.
- 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.anas.jcolorfulconsole</groupId> <groupId>com.github.0x61nas</groupId>
<artifactId>jcolorfulconsole</artifactId> <artifactId>JColorfulConsole</artifactId>
<version>1.0.1</version> <version>1.0.4</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 {
@ -43,10 +61,12 @@ allprojects {
} }
} }
``` ```
**Step 2**. Add the dependency **Step 2**. Add the dependency
```gradle ```gradle
dependencies { dependencies {
implementation 'com.github.Anas-Elgarhy:JColorfulConsole:1.0.1' implementation 'com.github.0x61nas:JColorfulConsole:1.0.4'
} }
``` ```
@ -72,6 +92,7 @@ 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
@ -93,19 +114,26 @@ 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)
@ -113,10 +141,8 @@ 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.1-t1.2</version> <version>1.0.4</version>
<packaging>pom</packaging> <packaging>jar</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/Anas-Elgarhy/JColorfulConsole</url> <url>https://github.com/0x61na/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.2</version> <version>3.11.0</version>
<configuration> <configuration>
<source>8</source> <source>8</source>
<target>8</target> <target>8</target>

6
renovate.json Normal file
View file

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