Skip to content

Commit

Permalink
Use new append API for ListProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Feb 27, 2024
1 parent ad6d359 commit 264df92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -17,10 +17,10 @@ abstract class UpdateJarAction @Inject constructor(private val operations: ExecO
abstract val args: ListProperty<String>

init {
args.addAll(
args.convention(listOf(
"--update",
"--date=${Instant.ofEpochMilli(ZipCopyAction.CONSTANT_TIME_FOR_ZIP_ENTRIES)}",
)
))
}

override fun execute(t: Task) {
Expand Down
2 changes: 1 addition & 1 deletion junit-platform-commons/junit-platform-commons.gradle.kts
Expand Up @@ -19,7 +19,7 @@ tasks.jar {
inputs.dir(release9ClassesDir).withPathSensitivity(PathSensitivity.RELATIVE)
doLast(objects.newInstance(UpdateJarAction::class).apply {
javaLauncher = javaToolchains.launcherFor(java.toolchain)
args.addAll(
args.appendAll(
"--file", archiveFile.get().asFile.absolutePath,
"--release", "9",
"-C", release9ClassesDir.absolutePath, "."
Expand Down
2 changes: 1 addition & 1 deletion junit-platform-console/junit-platform-console.gradle.kts
Expand Up @@ -43,7 +43,7 @@ tasks {
from(sourceSets.mainRelease9.get().output.classesDirs)
doLast(objects.newInstance(UpdateJarAction::class).apply {
javaLauncher = project.javaToolchains.launcherFor(java.toolchain)
args.addAll(
args.appendAll(
"--file", archiveFile.get().asFile.absolutePath,
"--main-class", "org.junit.platform.console.ConsoleLauncher",
"--release", "17",
Expand Down

0 comments on commit 264df92

Please sign in to comment.