mirror of
https://github.com/anas-elgarhy/JColorfulConsole.git
synced 2024-08-14 23:57:19 +00:00
Compare commits
31 commits
1.0.1-t1.2
...
master
Author | SHA1 | Date | |
---|---|---|---|
bde4bf1a17 | |||
|
a41457c5b7 | ||
|
e6badfa32a | ||
|
3acea46f47 | ||
|
c4fad79269 | ||
|
63e6383d19 | ||
|
31f7c65988 | ||
|
f698702281 | ||
|
3a6312c931 | ||
|
5875c4c2fc | ||
|
9ed7043640 | ||
|
6b1dc072fa | ||
|
42c531c43f | ||
|
a0007fc67e | ||
|
5d5bba959f | ||
|
b4599084bc | ||
|
b56d6507af | ||
|
177ce1e6e3 | ||
|
ae5cda307e | ||
|
1d8ee25100 | ||
|
de21d70023 | ||
|
0e963dd194 | ||
5f973fd178 | |||
f71b63a9c8 | |||
|
130881c32e | ||
fabfddbb22 | |||
c96b754391 | |||
767150be81 | |||
5cf5a3590c | |||
a4de946e6e | |||
f2b21cfb6b |
7 changed files with 64 additions and 26 deletions
8
.github/workflows/gradle-publish.yml
vendored
8
.github/workflows/gradle-publish.yml
vendored
|
@ -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:
|
||||||
|
|
4
.github/workflows/maven-publish.yml
vendored
4
.github/workflows/maven-publish.yml
vendored
|
@ -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'
|
||||||
|
|
|
@ -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
7
.mergify.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
pull_request_rules:
|
||||||
|
- name: Automatic merge on approval
|
||||||
|
conditions:
|
||||||
|
- "#approved-reviews-by>=1"
|
||||||
|
actions:
|
||||||
|
merge:
|
||||||
|
method: merge
|
40
README.md
40
README.md
|
@ -12,6 +12,7 @@
|
||||||
[![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).
|
||||||
|
@ -22,19 +23,36 @@
|
||||||
- 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.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)
|
||||||
|
|
8
pom.xml
8
pom.xml
|
@ -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
6
renovate.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:base"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue