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

View file

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

View file

@ -6,6 +6,7 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="JColorfulConsole" />
</profile>
</annotationProcessing>
<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)
## Features:
- Support text color.
- Support background color.
- Support 256 colors (RGB).
- Support ANSI colors.
- Support indexed colors.
- Support text style.
- Lightweight and fast.
- Easy to use.
- Support text color.
- Support background color.
- Support 256 colors (RGB).
- Support ANSI colors.
- Support indexed colors.
- Support text style.
- Lightweight and fast.
- Easy to use.
## How to add this library into your project
### Maven
**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
**Step 1**. Add the dependency
```xml
<dependency>
<groupId>com.github.0x61nas</groupId>
<artifactId>JColorfulConsole</artifactId>
<version>1.0.4</version>
<groupId>com.anas.jcolorfulconsole</groupId>
<artifactId>jcolorfulconsole</artifactId>
<version>1.0.1</version>
</dependency>
```
#### Gradle:
**Step 1**. Add the JitPack repository to your build file<br>
*Add it in your root build.gradle at the end of repositories:*
```gradle
allprojects {
repositories {
@ -61,12 +43,10 @@ allprojects {
}
}
```
**Step 2**. Add the dependency
```gradle
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)
```java
@ -114,26 +93,19 @@ public class Example2 {
}
}
```
![Result of example 2](./Screenshots/1.0.1-example2.gif)
## Requirements for development:
- Maven
- jdk 17
- IntelliJ IDEA (not required but recommended)
## TODO
- [ ] Add Tests
- [ ] Add Formatter
- [ ] Add Documentation
- [ ] Add more examples
## Projects using this library 💙
- [jls](https://github.com/Anas-Elgarhy/jls)
- [jpwd](https://github.com/Anas-Elgarhy/jpwd)
### Available in
[![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)
[![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)
[![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)

View file

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

View file

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