Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JetBrains/java-annotations
Annotations for JVM-based languages.
https://github.com/JetBrains/java-annotations
Last synced: 4 months ago
JSON representation
Annotations for JVM-based languages.
- Host: GitHub
- URL: https://github.com/JetBrains/java-annotations
- Owner: JetBrains
- License: apache-2.0
- Created: 2018-02-16T06:39:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T08:33:50.000Z (4 months ago)
- Last Synced: 2024-10-29T14:55:27.774Z (4 months ago)
- Language: Kotlin
- Homepage:
- Size: 377 KB
- Stars: 405
- Watchers: 29
- Forks: 47
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Annotations for JVM-based languages
[](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) [](https://opensource.org/licenses/Apache-2.0) [](https://maven-badges.herokuapp.com/maven-central/org.jetbrains/annotations) [](https://javadoc.io/doc/org.jetbrains/annotations)A set of Java annotations which can be used in JVM-based languages. They serve as an additional documentation and can be
interpreted by IDEs and static analysis tools to improve code analysis.[Change Log](CHANGELOG.md) | [Contributing](CONTRIBUTING.md) | [Code of Conduct](CODE_OF_CONDUCT.md)
## Documentation
- [JavaDoc](https://javadoc.io/doc/org.jetbrains/annotations)
- [JavaDoc](https://javadoc.io/doc/org.jetbrains/annotations-java5) for legacy Java 5.0 compatible package## Using the annotations
The annotations are published on [Maven Central](https://repo1.maven.org/maven2/org/jetbrains/annotations/). To add a dependency
using gradle write the following in the
`build.gradle` file (Groovy DSL)
```
dependencies {
compileOnly 'org.jetbrains:annotations:25.0.0'
}```
or in the `build.gradle.kts` file (Kotlin DSL)
```
dependencies {
compileOnly("org.jetbrains:annotations:25.0.0")
}```
To add a dependency using Maven, write the following in `pom.xml`:
```xmlorg.jetbrains
annotations
25.0.0
provided```
`annotations` artifact requires JDK 1.8 or higher. If your project is compiled using JDK 1.5, 1.6 or 1.7 you can use
the `annotations-java5` artifact instead. Please note that `annotations-java5` artifact is considered a legacy
and will receive no further updates. The latest version of `annotations-java5` is 24.1.0.