From f2b44d4e9006b84612c222cece34b507a022b3a0 Mon Sep 17 00:00:00 2001 From: Poyraz INAN Date: Sun, 26 Sep 2021 22:57:25 +0300 Subject: [PATCH] Updated Workflows & README + Downgraded workflow java version 16 to 8. + Added Maven & Gradle artifact to README --- .github/workflows/maven-publish.yml | 4 ++-- .github/workflows/maven.yml | 4 ++-- README.md | 33 ++++++++++++++++++++++++++++- 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 41f60e4..8e42402 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 16 + - name: Set up JDK 1.8 uses: actions/setup-java@v2 with: - java-version: '16' + java-version: '8' distribution: 'adopt' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9bf37e1..bf280d7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 16 + - name: Set up JDK 1.8 uses: actions/setup-java@v2 with: - java-version: '16' + java-version: '8' distribution: 'adopt' cache: maven - name: Build with Maven diff --git a/README.md b/README.md index dfdde5c..00f05b3 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,42 @@ After then returns boolean about license status. } ``` +## API +[![](https://jitpack.io/v/poyrazinan/JavaLicense.svg)](https://jitpack.io/#poyrazinan/JavaLicense) +[![Java CI with Maven](https://github.com/poyrazinan/JavaLicense/actions/workflows/maven.yml/badge.svg)](https://github.com/poyrazinan/JavaLicense/actions/workflows/maven.yml) +### Maven: +```xml + + + jitpack.io + https://jitpack.io + + + + + + com.github.poyrazinan + JavaLicense + 1.0.0 + compile + + +``` +### Gradle: +``` +repositories { + maven { url 'https://jitpack.io' } +} + +dependencies { + implementation 'com.github.poyrazinan:JavaLicense:1.0.0' +} +``` + ## Requirements: * Web API for storing licenses and check. * User must have CURL for license check. -* Developed on Java 16 (Can be usable lower versions probably.) ## Dependencies