Skip to content

Add shadowJar plugin to produce artifacts with dependencies included #12

Add shadowJar plugin to produce artifacts with dependencies included

Add shadowJar plugin to produce artifacts with dependencies included #12

Workflow file for this run

#
# Copyright © 2024 Peter M. Stahl [email protected]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Build
on:
push:
branches:
- main
paths:
- 'build.gradle.kts'
- 'settings.gradle.kts'
- 'gradle/wrapper/gradle-wrapper.properties'
- 'src/**'
- '**.yml'
pull_request:
branches:
- main
paths:
- 'build.gradle.kts'
- 'settings.gradle.kts'
- 'gradle/wrapper/gradle-wrapper.properties'
- 'src/**'
- '**.yml'
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Build and test
run: ./gradlew check
- name: Validate Gradle plugin publication settings
if: ${{ github.actor != 'dependabot[bot]' }}
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
run: ./gradlew publishPlugins --validate-only