Skip to content

Commit

Permalink
build: fix PrintSnapshotVersionTask again
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyAreaBean committed Dec 22, 2024
1 parent bacd564 commit 3945e19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,13 @@ tasks.withType(xyz.jpenilla.runtask.task.AbstractRun) {
}

abstract class PrintSnapshotVersionTask extends DefaultTask {
// Store the project version as a property
@Input String projectVersion
@InputDirectory File buildDirectory
@Input String buildDirectory

// Constructor to set the project version
PrintSnapshotVersionTask() {
this.projectVersion = project.version.toString()
this.buildDirectory = project.layout.buildDirectory.get().asFile
this.buildDirectory = project.layout.buildDirectory.get().asFile.toString()
}

@TaskAction
Expand Down

0 comments on commit 3945e19

Please sign in to comment.