https://github.com/stringbean/sbt-jandex
sbt plugin for generating Jandex indexes
https://github.com/stringbean/sbt-jandex
jandex quarkus sbt-plugin
Last synced: 5 months 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T08:40:00.000Z (about 2 years ago)
- Last Synced: 2025-01-10T05:16:22.862Z (6 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
[](https://github.com/stringbean/sbt-jandex/actions/workflows/ci.yml)
[](https://app.codacy.com/gh/stringbean/sbt-jandex)
[](https://snyk.io/test/github/stringbean/sbt-jandex?targetFile=build.sbt)
[](https://index.scala-lang.org/stringbean/sbt-jandex/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