Skip to content

Commit 94ed4be

Browse files
authored
Add 'order' setter so it can be used in poEditor DSL (#62)
1 parent fc96896 commit 94ed4be

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
### Removed
3131
- No removed features!
3232
### Fixed
33-
- No fixed issues!
33+
- Fix `order` setter not added to `PoEditorPluginExtension`
3434
### Security
3535
- No security issues fixed!
3636

src/main/kotlin/com/hyperdevs/poeditor/gradle/PoEditorPluginExtension.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ open class PoEditorPluginExtension @Inject constructor(objects: ObjectFactory, p
203203
*/
204204
fun setFilters(value: List<String>) = filters.set(value)
205205

206+
/**
207+
* Sets the order in which to sort the strings from the officially supported list in PoEditor.
208+
*
209+
* NOTE: added for Gradle Groovy DSL compatibility. Check the note on
210+
* https://docs.gradle.org/current/userguide/lazy_configuration.html#lazy_properties for more details.
211+
*
212+
* Gradle Kotlin DSL users must use `order.set(value)`.
213+
*/
214+
fun setOrder(value: String) = order.set(value)
215+
206216
/**
207217
* Sets the tags to filter downloaded strings with, previously declared in PoEditor.
208218
*

0 commit comments

Comments
 (0)