Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sschr15/jetbrains-annotations-kmp
A copy of Jetbrains Java annotations ported to Kotlin for Kotlin/Multiplatform purposes
https://github.com/sschr15/jetbrains-annotations-kmp
Last synced: 25 days ago
JSON representation
A copy of Jetbrains Java annotations ported to Kotlin for Kotlin/Multiplatform purposes
- Host: GitHub
- URL: https://github.com/sschr15/jetbrains-annotations-kmp
- Owner: sschr15
- License: apache-2.0
- Created: 2023-10-04T18:42:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-11T20:13:33.000Z (11 months ago)
- Last Synced: 2023-12-12T20:43:49.121Z (11 months ago)
- Language: Kotlin
- Size: 165 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jetbrains Annotations - Kotlin Multiplatform
A copy of Jetbrains' [java-annotations](https://github.com/jetbrains/java-annotations) library,
converted in-place (mostly) by the Jetbrains kotlin IDEA plugin's "Convert Java class to Kotlin file" utility.**This is not an official Jetbrains resource**, but instead is a modified copy to support Kotlin Multiplatform targets.
## Usage
This is published to Maven Central as `com.sschr15.annotations:jb-annotations-kmp:`.
It is meant to be available for every non-deprecated KMP target (links to [non-native](https://kotlinlang.org/docs/multiplatform-dsl-reference.html#targets) and [native](https://kotlinlang.org/docs/native-target-support.html) targets). If any are missing, go ahead and [create an issue](https://github.com/sschr15/jetbrains-annotations-kmp/issues/new) to let me know.Versioning matches that of the upstream annotations, with any rebuilds having specific `+something` information added.
The latest version (matching that of the original library) is shown on the right as the latest GitHub release.
The first version ported is `24.0.1`.Using Groovy-style Gradle:
```groovy
kotlin {
sourceSets.commonMain {
dependencies {
implementation "com.sschr15.annotations:jb-annotations-kmp:$VERSION"
}
}
}
```Using Kotlin-style Gradle:
```kotlin
kotlin {
sourceSets["commonMain"] {
dependencies {
implementation("com.sschr15.annotations:jb-annotations-kmp:$VERSION")
}
}
}
```