Skip to content

Commit

Permalink
update action to java 21 (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicklamprecht authored Oct 4, 2024
1 parent fd7c15a commit a86ffda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_to_nexus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 18
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 18
java-version: 21
- name: Build with Gradle
run: ./gradlew --build-cache build
- name: Test with Gradle
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 18
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 18
java-version: 21
architecture: x64
- name: Build with Gradle
run: ./gradlew --build-cache build
- name: Test with Gradle
Expand Down
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ fun applyJavaDocOptions(options: MinimalJavadocOptions) {
tasks {
register<Javadoc>("allJavadocs") {
applyJavaDocOptions(options)

destinationDir = file("${buildDir}/docs/javadoc")
setDestinationDir(file("${layout.buildDirectory}/docs/javadoc"))
val projects = project.rootProject.allprojects.filter { p -> publicProjects.contains(p.name) }
setSource(projects.map { p -> p.sourceSets.main.get().allJava })
classpath = files(projects.map { p -> p.sourceSets.main.get().compileClasspath })
Expand Down

0 comments on commit a86ffda

Please sign in to comment.