Skip to content

README: use implementation instead of api in the Gradle examples #150

README: use implementation instead of api in the Gradle examples

README: use implementation instead of api in the Gradle examples #150

Workflow file for this run

# Build workflow
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Validate wrapper to prevent potential supply chain attack
gradle-wrapper-validation:
# Run on Ubuntu which consumes less minutes
runs-on: ubuntu-latest
name: Validate Gradle wrapper
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
build:
# Many tests only pass on Windows
runs-on: windows-latest
strategy:
matrix:
java: [ '11', '17' ]
name: Java ${{ matrix.Java }} build
steps:
- uses: actions/checkout@v3
# Set JDK
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
# Build
- name: Build with Gradle
run: >-
./gradlew build
-PexcludeTests="SamplesRenderingTest.testFontArabic,SamplesRenderingTest.testVerticalText,StyleBypassRenderingTest.testVerticalText"
# Generate modular javadocs
- name: Modular javadocs
run: ./gradlew modularJavadoc