Skip to content

Commit

Permalink
Use dependsOn instead of shouldRunAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
wmdietl committed Jul 26, 2024
1 parent d5f9001 commit 22ffce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ plugins {
id 'com.diffplug.spotless' version '6.25.0'
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
id 'net.ltgt.errorprone' version '3.0.1'
// To show task list as a tree, run: ./gradlew <taskname> taskTree
id 'com.dorongold.task-tree' version '4.0.0'
}

// Nexus Publish plugin requires a group/version at the root project.
Expand Down Expand Up @@ -133,7 +135,7 @@ tasks.withType(JavaCompile).configureEach {

tasks.register('includeJSpecifyJDK') {
group = 'Build'
shouldRunAfter 'compileJava'
dependsOn 'compileJava'

def srcDir = "${jspecifyJdkHome}/src"
// This directory needs to be stored at the top-level of the resulting .jar file.
Expand Down

0 comments on commit 22ffce1

Please sign in to comment.