Skip to content

Commit

Permalink
New Repos & Updates (#24)
Browse files Browse the repository at this point in the history
* New Repos & Updates
* Added new repos (JitPack & Sonatype)
* Updated dependencies
* Updated README.md

Signed-off-by: Francisco Solis <imfran@duck.com>

* Fix Import

Signed-off-by: Francisco Solis <imfran@duck.com>

* Fix Test

Signed-off-by: Francisco Solis <imfran@duck.com>

* Fix Test Assertion

Signed-off-by: Francisco Solis <imfran@duck.com>

* Improved Classpath Loader & Fixed Tests

Signed-off-by: Francisco Solis <imfran@duck.com>

---------

Signed-off-by: Francisco Solis <imfran@duck.com>
  • Loading branch information
Im-Fran committed Feb 16, 2023
1 parent 27e872b commit 039d9f8
Show file tree
Hide file tree
Showing 18 changed files with 268 additions and 185 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ jobs:
# Set up the OS
runs-on: ubuntu-latest
env:
# Nexus credentials and GitHub token
NEXUS_USERNAME: '${{ secrets.NEXUS_USERNAME }}'
NEXUS_PASSWORD: '${{ secrets.NEXUS_PASSWORD }}'
# Sonatype Credentials & GitHub token
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
# Set environment
env: 'prod'
ENV: 'prod'
PROJECT_NAME: 'DependencyDownloaderModule'
steps:
# Checkout the Code
- name: Checkout Code
uses: actions/checkout@v3
# Set up git hashes environment variables
- name: Git Hashes
uses: Im-Fran/git-hashes-action@v1.0.1
uses: Im-Fran/git-hashes-action@v1.0.3
# Set up version from tag environment variables
- name: Version from Tag Action
uses: Im-Fran/version-from-tag-action@v1.0.1
uses: Im-Fran/version-from-tag-action@v1.0.3
with:
remove-first-character: 'v'
# Set up the JDK
Expand All @@ -31,22 +32,30 @@ jobs:
with:
distribution: adopt
java-version: 11
cache: 'gradle'
# Make gradle executable
- name: Make gradle executable
run: chmod +x gradlew
# Clean, Test, Publish and Build (in that order to save the artifact to the action)
- name: Test, Deploy and Build with Gradle
run: ./gradlew clean test publish shadow dokkaHtml
run: ./gradlew clean test shadowJar dokkaHtml publish publishToSonatype closeAndReleaseSonatypeStagingRepository -no-daemon
# Now we store the artifact in the action
- name: Upload the artifact
uses: actions/upload-artifact@v3
with:
name: DependencyDownloaderModule
path: ./build/libs/DependencyDownloaderModule-${{ env.VERSION }}.jar
name: ${{ env.PROJECT_NAME }}
path: ./build/libs/${{ env.PROJECT_NAME }}-${{ env.VERSION }}.jar
# Here we upload the binary to the release
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ./build/libs/${{ env.PROJECT_NAME }}-${{ env.VERSION }}.jar application/java-archive
# Now we deploy the documents to GitHub pages
- name: Deploy Dokka
uses: JamesIves/github-pages-deploy-action@v4.4.0
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: build/dokka
clean: true
clean: true
clean-exclude: |
CNAME
35 changes: 18 additions & 17 deletions .github/workflows/gradle-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Test"
# Only execute this workflow when a PR is opened or when something is pushed to the master branch
on: [push, pull_request]
on: [pull_request]
jobs:
testBuilds:
strategy:
Expand All @@ -12,20 +12,21 @@ jobs:
runs-on: ubuntu-latest
# Set up environment variables
env:
env: 'local' # Set to local, so it won't deploy the jar to the repos
ENV: 'local' # Set to local, so it won't deploy the jar to the repos
steps:
# Checkout code
- name: Checkout Code
uses: actions/checkout@v3
# Setup java and maven
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java-version }}
# Setup executable gradle
- name: Make Gradle executable
run: chmod +x gradlew
# Test building without dokka
- name: Build Jar with Java ${{ matrix.java-version }}
run: ./gradlew clean publish shadow -x dokkaHtml
# Checkout code
- name: Checkout Code
uses: actions/checkout@v3
# Setup java and maven
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java-version }}
cache: 'gradle'
# Setup executable gradle
- name: Make Gradle executable
run: chmod +x gradlew
# Test building without dokka
- name: Build Jar with Java ${{ matrix.java-version }}
run: ./gradlew clean shadowJar test -x dokkaHtml -no-daemon
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# v0.1.0 - Snapshot
## v0.2.0 - New Repos & Updates
* Added new repos (JitPack & Sonatype)
* Updated dependencies
* Updated README.md
* Improved ClasspathLoader

## v0.1.0 - Snapshot
Hello, World!
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[![](https://jitci.com/gh/TheProgramSrc/SimpleCore-DependencyDownloaderModule/svg)](https://jitci.com/gh/TheProgramSrc/SimpleCore-DependencyDownloaderModule)
[![](https://jitpack.io/v/TheProgramSrc/SimpleCore-DependencyDownloaderModule.svg)](https://jitpack.io/#TheProgramSrc/SimpleCore-DependencyDownloaderModule)
[![](https://img.shields.io/nexus/s/xyz.theprogramsrc/dependencydownloadermodule?server=https%3A%2F%2Fs01.oss.sonatype.org)]()

# SimpleCore-DependencyDownloaderModule
Download dependencies from Nexus3 repositories programmatically!

# Documentation
* [Wiki](https://github.com/TheProgramSrc/SimpleCore-DependencyDownloaderModule/wiki)
* [JavaDocs](https://theprogramsrc.github.io/SimpleCore-DependencyDownloaderModule/)
* [JavaDocs](https://docs.theprogramsrc.xyz/SimpleCore-DependencyDownloaderModule/)
117 changes: 0 additions & 117 deletions build.gradle

This file was deleted.

0 comments on commit 039d9f8

Please sign in to comment.