Skip to content

Commit 2117410

Browse files
Fix PurgeNpmAlphaVersion to not require properties used by base class (#239)
1 parent ddce975 commit 2117410

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ If you are making changes to the plugins, please see the [internal docs](https:/
1212
on how to do that, including how to develop and test locally and the versioning information.
1313

1414
## Release Notes
15+
### 7.2.1
16+
*Released* 23 December 2025
17+
(Earliest compatible LabKey version: 25.10)
18+
- Fix `PurgeNpmAlphaVersions` task
1519

1620
### 7.2.0
1721
*Released*: 11 December 2025

src/main/groovy/org/labkey/gradle/task/PurgeNpmVersions.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import org.gradle.api.DefaultTask
1111
import org.gradle.api.GradleException
1212
import org.gradle.api.provider.Property
1313
import org.gradle.api.tasks.Input
14+
import org.gradle.api.tasks.Optional
1415
import org.gradle.api.tasks.TaskAction
1516
import org.labkey.gradle.util.TaskUtils
1617

@@ -22,9 +23,11 @@ abstract class PurgeNpmVersions extends DefaultTask
2223
private static final String VERSION_LIST_PROP = "versionList"
2324

2425
@Input
26+
@Optional
2527
final abstract Property<String> packageName = project.objects.property(String).convention((project.hasProperty(PACKAGE_NAME_PROP) ? (String) project.property(PACKAGE_NAME_PROP) : null))
2628

2729
@Input
30+
@Optional
2831
final abstract Property<String> versionList = project.objects.property(String).convention((project.hasProperty(VERSION_LIST_PROP) ? (String) project.property(VERSION_LIST_PROP) : null))
2932

3033
@Input

0 commit comments

Comments
 (0)