From f2a3439a0263510707ef082036b2b8634107175c Mon Sep 17 00:00:00 2001 From: Kyle Roe <[hopeman15@users.noreply.github.com]> Date: Thu, 18 Dec 2025 12:00:05 +0100 Subject: [PATCH] [Fix] Workflow and Dokka v2 doc generation --- .github/workflows/main.yml | 20 ++++++++++++++++++++ Makefile | 4 ++-- forge-core/build.gradle.kts | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1765d502..7f970c27 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,26 @@ jobs: with: access_token: ${{ github.token }} + documentation: + name: Generate Dokka Docs + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '11','17' ] + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Set up JDK + uses: actions/setup-java@v5.0.0 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + cache: 'gradle' + - name: Generate Docs + run: make docs + test: runs-on: ubuntu-latest needs: cancel-previous diff --git a/Makefile b/Makefile index 6f240bc2..e2f4fa46 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BUMP ?= patch FILE ?= empty -all: clean format lint lint-docs test coverage build +all: clean format lint lint-docs test coverage build docs .PHONY: all build: @@ -17,7 +17,7 @@ coverage: .PHONY: coverage docs: - ./gradlew dokkaHtml + ./gradlew dokkaGenerateHtml .PHONY: docs format: diff --git a/forge-core/build.gradle.kts b/forge-core/build.gradle.kts index ec7cc5bf..11df65f3 100644 --- a/forge-core/build.gradle.kts +++ b/forge-core/build.gradle.kts @@ -48,7 +48,7 @@ mavenPublishing { configure( KotlinJvm( - javadocJar = JavadocJar.Dokka("dokkaHtml"), + javadocJar = JavadocJar.Dokka("dokkaGenerateHtml"), sourcesJar = true, ) )