Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stringbean/sbt-jandex
sbt plugin for generating Jandex indexes
https://github.com/stringbean/sbt-jandex
jandex quarkus sbt-plugin
Last synced: 26 days ago
JSON representation
sbt plugin for generating Jandex indexes
- Host: GitHub
- URL: https://github.com/stringbean/sbt-jandex
- Owner: stringbean
- License: apache-2.0
- Created: 2023-06-01T13:38:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-29T08:40:00.000Z (over 1 year ago)
- Last Synced: 2024-11-11T17:49:36.317Z (3 months ago)
- Topics: jandex, quarkus, sbt-plugin
- Language: Scala
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# sbt-jandex
[![Build Status](https://img.shields.io/github/actions/workflow/status/stringbean/sbt-jandex/ci.yml?branch=main)](https://github.com/stringbean/sbt-jandex/actions/workflows/ci.yml)
[![Codacy grade](https://img.shields.io/codacy/grade/aad472c1c869488e977a198e97253d8e?label=codacy)](https://app.codacy.com/gh/stringbean/sbt-jandex)
[![Known Vulnerabilities](https://snyk.io/test/github/stringbean/sbt-jandex/badge.svg?targetFile=build.sbt)](https://snyk.io/test/github/stringbean/sbt-jandex?targetFile=build.sbt)
[![sbt-jandex version](https://index.scala-lang.org/stringbean/sbt-jandex/sbt-jandex/latest.svg)](https://index.scala-lang.org/stringbean/sbt-jandex/sbt-jandex)
[![GitHub Discussions](https://img.shields.io/github/discussions/stringbean/sbt-jandex)](https://github.com/stringbean/sbt-jandex/discussions)An sbt plugin to generate [Jandex][jandex] indexes for projects.
## Setup
Add the following lines to `project/plugins.sbt`:
```scala
// add the plugin
addSbtPlugin("software.purpledragon" % "sbt-jandex" % "")// add the Jandex 3.x library
libraryDependencies += "io.smallrye" % "jandex" % "3.1.2"// or Jandex 2.x library
libraryDependencies += "org.jboss" % "jandex" % "2.4.3.Final"// or Jandex 1.x library
libraryDependencies += "org.jboss" % "jandex" % "1.2.4.Final"
```Jandex indexes will automatically be generated and added to the binary JARs.
## Tasks
### `jandex`
Generates Jandex index for the main classes and stores it in `jandexOutput.value / jandex.idx`.
## Settings
### `jandexOutput`
* **Description:** Directory to store generated Jandex index in.
* **Accepts:** `File`
* **Default:** `crossTarget.value / jandex`### `jandexIncludeInPackage`
* **Description:** Whether to include Jandex index in the main JAR. If `true` then the index will be included under
\`META-INF/jandex.idx.
* **Accepts:** `Boolean`
* **Default:** `true`[jandex]: https://smallrye.io/jandex