Skip to content

Commit

Permalink
Fixes gh build issue related to dokka [#78]
Browse files Browse the repository at this point in the history
  • Loading branch information
willbuck committed Mar 31, 2021
1 parent 43ebf31 commit ce9e668
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gradle.yml
Expand Up @@ -42,7 +42,8 @@ jobs:
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew publishToSonatype docs --no-daemon
# Edited below to add MaxMetaspace for dokka workaround
run: ./gradlew publishToSonatype docs --no-daemon -Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=350m"
- name: Determine docs target repository
uses: haya14busa/action-cond@v1
id: docs_target
Expand Down
10 changes: 8 additions & 2 deletions build.gradle
Expand Up @@ -4,12 +4,19 @@ buildscript {
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"

classpath "io.micronaut.build.internal:micronaut-gradle-plugins:3.0.3"
}
}

plugins {
id("org.jetbrains.dokka") version "${dokka_version}"
}

repositories {
jcenter() // or maven(url="https://dl.bintray.com/kotlin/dokka")
}

subprojects { Project subproject ->
group "io.micronaut.kotlin"

Expand All @@ -21,7 +28,6 @@ subprojects { Project subproject ->

apply plugin: "io.micronaut.build.internal.docs"
apply plugin: "io.micronaut.build.internal.dependency-updates"
apply plugin: 'org.jetbrains.dokka'

tasks.named("dokkaHtmlMultiModule") {
outputDirectory.set(new File("${rootProject.buildDir}/docs/api"))
Expand Down

0 comments on commit ce9e668

Please sign in to comment.