https://github.com/copper-leaf/trellis
A Kotlin implementation of the Specification Pattern
https://github.com/copper-leaf/trellis
Last synced: about 1 year ago
JSON representation
A Kotlin implementation of the Specification Pattern
- Host: GitHub
- URL: https://github.com/copper-leaf/trellis
- Owner: copper-leaf
- License: bsd-3-clause
- Created: 2018-08-08T01:50:48.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2022-10-19T18:46:07.000Z (over 3 years ago)
- Last Synced: 2025-04-11T21:21:43.637Z (about 1 year ago)
- Language: Kotlin
- Homepage: https://copper-leaf.github.io/trellis/
- Size: 771 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Trellis
> A Kotlin implementation of the [Specification Pattern](https://en.wikipedia.org/wiki/Specification_pattern)



Trellis is an implementation of the [Specification Pattern](https://en.wikipedia.org/wiki/Specification_pattern)
written in Kotlin, and designed for asynchronous evaluation of specifications using Kotlin coroutines and dynamic
creation and evaluation.
# Supported Platforms/Features
| Platform |
| -------- |
| Android |
| JVM |
| iOS |
| JS |
# Installation
```kotlin
repositories {
mavenCentral()
}
// for plain JVM or Android projects
dependencies {
implementation("io.github.copper-leaf:trellis-core:{{site.version}}")
implementation("io.github.copper-leaf:trellis-dsl:{{site.version}}")
}
// for multiplatform projects
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("io.github.copper-leaf:trellis-core:{{site.version}}")
implementation("io.github.copper-leaf:trellis-dsl:{{site.version}}")
}
}
}
}
```
# Documentation
See the [website](https://copper-leaf.github.io/trellis/) for detailed documentation and usage instructions.
# License
Trellis is licensed under the BSD 3-Clause License, see [LICENSE.md](https://github.com/copper-leaf/trellis/tree/main/LICENSE.md).
# References
- [https://www.michael-whelan.net/rules-design-pattern](https://www.michael-whelan.net/rules-design-pattern)
- [https://www.martinfowler.com/apsupp/spec.pdf](https://www.martinfowler.com/apsupp/spec.pdf)
- [https://en.wikipedia.org/wiki/Specification_pattern](https://en.wikipedia.org/wiki/Specification_pattern)