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: 7 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T08:33:50.000Z (about 1 month ago)
- Last Synced: 2024-10-29T14:55:27.774Z (15 days 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
[![official JetBrains project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jetbrains/annotations/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.jetbrains/annotations) [![javadoc](https://javadoc.io/badge2/org.jetbrains/annotations/javadoc.svg)](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.