Skip to content

Commit

Permalink
Updated Workflows & README
Browse files Browse the repository at this point in the history
+ Downgraded workflow java version 16 to 8.
+ Added Maven & Gradle artifact to README
  • Loading branch information
poyrazinan committed Sep 26, 2021
1 parent a39d09c commit f2b44d4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.github.poyrazinan</groupId>
<artifactId>JavaLicense</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
```
### 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

Expand Down

0 comments on commit f2b44d4

Please sign in to comment.