setup-java
Chips-n-Salsa
Our great sponsors
setup-java | Chips-n-Salsa | |
---|---|---|
10 | 15 | |
1,429 | 52 | |
3.4% | - | |
6.8 | 8.4 | |
about 18 hours ago | 4 days ago | |
TypeScript | Java | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
setup-java
- Disable Annotations in Github Actions
-
Using Github Actions to publish your Flutter APP to Firebase App Distribution
Then, we have two important initial steps to define. The first one is an official GitHub Action used to check-out a repository so a workflow can access it. The second one it's pretty more complex but, briefly, downloads and set up a requested version of Java.
-
Top 10 GitHub Actions You Should Use to set up your CI/CD Pipeline
The most popular ones are Node.js, Python, Java JDK, Go, .Net Core SDK.
-
My summary of jPrime 2022
Finally, note that the v2 of setup-java GitHub Action limits the possible JDK distributions to four options. If you need to use one that is not listed, use foojayio/setup-java instead to configure any distribution.
-
Upgrade to Gradle JDK 11 on Github Actions
See https://github.com/actions/setup-java for more configuration regarding distribution, version and caching.
-
Github action to download and install Oracle JDK and OpenJDK (including EA) builds.
Why can't Oracle just integrate with https://github.com/actions/setup-java like everyone else?
-
Deploying to GitHub Pages using GitHub Actions
Next up we'll need to add a step to compile our production ready build. For this we can add two new steps, one which configures our Node version to ensure it matches our application, followed by another that runs the necessary commands with npm. Depending on how your application is built you may need to add another step between these to install any sort of required environments such as Python or Java.
-
JaCoCo coverage badges, PR coverage checks, and PR coverage comments, from GitHub Actions
Set up the JDK with the actions/setup-java GitHub Action.
-
JDK 17 First Release-Candidate Build Released #TestItNow
It now works (as of yesterday) with Github Actions via https://github.com/actions/setup-java and setting the distribution to temurin.
-
Hosting Kotlin/JS on GitHub Pages via GitHub Actions
The Kotlin compiler needs Java to be present, so we use a predefined GitHub Action to install Java 1.8.
Chips-n-Salsa
-
Deploy a Documentation Website for a Java Library Using GitHub Actions
name: docs on: push: branches: [ master ] paths: [ '**.java', '.github/workflows/docs.yml' ] pull_request: branches: [ master ] release: types: [created] workflow_dispatch: jobs: docs: runs-on: ubuntu-latest steps: - name: Checkout the repo uses: actions/checkout@v3 - name: Checkout the gh-pages branch uses: actions/checkout@v3 with: fetch-depth: 0 ref: gh-pages path: gh-pages - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'adopt' java-version: '17' - name: Build docs with Maven run: mvn compile javadoc:javadoc - name: Copy to Documentation Website Location if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} run: | rm -rf gh-pages/api cp -rf target/site/apidocs/. gh-pages/api - name: Tidy up the javadocs if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} id: tidy uses: cicirello/javadoc-cleanup@v1 with: base-url-path: https://chips-n-salsa.cicirello.org/ path-to-root: gh-pages user-defined-block: | - name: Log javadoc-cleanup output if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} run: | echo "modified-count = ${{ steps.tidy.outputs.modified-count }}" - name: Commit documentation changes without pushing yet if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} run: | cd gh-pages if [[ `git status --porcelain` ]]; then git config --global user.name 'github-actions' git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' git add -A git commit -m "Automated API website updates." fi cd .. - name: Generate the sitemap if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} id: sitemap uses: cicirello/generate-sitemap@v1 with: base-url-path: https://chips-n-salsa.cicirello.org/ path-to-root: gh-pages - name: Output stats if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} run: | echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}" echo "url-count = ${{ steps.sitemap.outputs.url-count }}" echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" - name: Commit documentation website sitemap and push all commits if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }} run: | cd gh-pages if [[ `git status --porcelain` ]]; then git config --global user.name 'github-actions' git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' git add -A git commit -m "Automated API website sitemap update." fi git push cd ..
-
Deploying Java Artifacts to Multiple Maven Repositories with GitHub Actions
Website: https://chips-n-salsa.cicirello.org/
-
How to Patch the Deprecated set-output in GitHub Workflows and in Container Actions
The complete workflow file that this example is derived from is maven-publish.yml.
-
How to Use Maven Profiles to Selectively Activate Plugins and Other Configuration from the Command Line
Let's look at a real example, again from Chips-n-Salsa, where I publish artifacts of the library on both Maven Central as well as to GitHub Packages. We'll build up to the full example. First, consider the configuration below:
-
How to Use the Maven Shade Plugin if Your Project Uses Java Platform Module System
To see a live example, you can consult the pom.xml of one of my projects. Here is the GitHub repository:
-
Configuring GitHub's Linguist to Improve Repository Language Reporting
GitHub Language Chart From https://github.com/cicirello/Chips-n-Salsa
-
Ahead-of-time JitPack Builds with Custom GroupId via GitHub Actions
Website: https://chips-n-salsa.cicirello.org/
-
How to Configure JitPack for Recent JDK Versions
Important Note: Because of the way JitPack essentially builds a snapshot of your repository, even for release builds, the jitpack.yml must be present within the specific snapshot of your repository in order to apply. For example, for the library that this post is based upon, Chips-n-Salsa, the first release where the repository contains the configuration file is 5.0.1, so JitPack will fail to build any prior version, although earlier versions are available via Maven Central and GitHub Packages. Likewise, if you specify any commit hash prior to that of the commit where that configuration file was introduced, the JitPack build will also fail.
-
How to Enable DEV Post Embeds for Pages From Your Website
Chips-n-Salsa - A Java library of customizable, hybridizable, iterative, parallel, stochastic, and self-adaptive local search algorithms
- Badges - TL;DR for your repository's README
What are some alternatives?
fetch-api-data-action - 🚚 GitHub action for handling authenticated API requests, allowing you to save the data from the request into your workspace as an environment variable and a .json file.
jacoco-badge-generator - Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
generate-sitemap - Generate an XML sitemap for a GitHub Pages site using GitHub Actions
upload-artifact
user-statistician - Generate a GitHub stats SVG for your GitHub Profile README in GitHub Actions
checkout - Action for checking out a repo
Firebase-Distribution-Github-Action - This action uploads artifacts (.apk or .ipa) to Firebase App Distribution.
maven-simple - Example Maven project demonstrating the use of
setup-java - Set up your GitHub Actions workflow with a specific version of Java
cicirello - My GitHub Profile