在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):arrow-kt/arrow开源软件地址(OpenSource Url):https://github.com/arrow-kt/arrow开源编程语言(OpenSource Language):Kotlin 89.7%开源软件介绍(OpenSource Introduction):Λrrow is a library for Typed Functional Programming in Kotlin. Arrow aims to provide a lingua franca of interfaces
and abstractions across Kotlin libraries. For this, it includes the most popular data types such
as Use the list below to learn more about Λrrow's main features. Curated external linksIf you have a blog post, talk, or upcoming event on Arrow, please considering opening an issue or PR to add to the collection over at the Arrow Media repo. Join UsArrow is an inclusive community powered by awesome individuals like you. As an actively growing ecosystem, Arrow and its associated libraries and toolsets are in need of new contributors! We have issues suited for all levels, from entry to advanced, and our maintainers are happy to provide 1:1 mentoring. All are welcome in Arrow. If you’re looking to contribute, have questions, or want to keep up-to-date about what’s happening, please follow us here and say hello! Find more details in CONTRIBUTING. SetupJDKMake sure to have the latest version of JDK 1.8 (or higher) installed. AndroidArrow supports Android starting on API 21 and up. GradleBasic SetupIn your project's root allprojects {
repositories {
mavenCentral()
}
} Add the dependencies into the project's Λrrow Coredef arrow_version = "1.0.1"
dependencies {
implementation "io.arrow-kt:arrow-core:$arrow_version"
} Λrrow Core + Λrrow Opticsapply plugin: 'kotlin-kapt'
def arrow_version = "1.0.1"
dependencies {
implementation "io.arrow-kt:arrow-optics:$arrow_version"
kapt "io.arrow-kt:arrow-meta:$arrow_version"
} Λrrow Core + Λrrow Fxdef arrow_version = "1.0.1"
dependencies {
implementation "io.arrow-kt:arrow-fx-coroutines:$arrow_version"
} BOM fileTo avoid specifying the Arrow version for every dependency, a BOM file is available:
MavenBasic SetupMake sure to have at least the latest version of JDK 1.8 installed. Add to your <properties>
<kotlin.version>1.5.31</kotlin.version>
<arrow.version>1.0.1</arrow.version>
</properties> Add the dependencies that you want to use: <dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-core</artifactId>
<version>${arrow.version}</version>
</dependency> Enabling kapt for the Optics DSLFor the Optics DSL, enable annotation processing using Kotlin plugin: <plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>kapt</id>
<goals>
<goal>kapt</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>src/main/kotlin</sourceDir>
</sourceDirs>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-meta</artifactId>
<version>${arrow.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</execution>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>src/main/kotlin</sourceDir>
</sourceDirs>
</configuration>
</execution>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin> BOM fileTo avoid specifying the Arrow version for every dependency, a BOM file is available:
Next development versionIf you want to try the latest features, replace allprojects {
repositories {
...
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
} License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论