devxp-elhub-gradle-plugins is a repository that contains plugins to streamline the development of products built with gradle at Elhub. It contains the common build logic for a variety of different types of Kotlin/Jvm components.
The devxp-elhub-gradle-plugins are used together with Gradle projects at Elhub.
The individual plugins are installed in your gradle build files by making them available in the settings.gradle.kts and build.gradle.kts files.
In your settings.gradle.kts add a pluginManagement block to ensure the code can use your local plugin repository.
pluginManagement {
repositories {
maven(url = "https://jfrog.elhub.cloud/artifactory/elhub-plugins")
}
}
Then add the plugin you want to use in the plugins block of the build.gradle.kts file:
plugins {
id("no.elhub.devxp.kotlin-XYZ") version "0.2.1"
}
Depending on the plugin deployed, you will find a number of useful plugins, repositories and tasks added to the project suitable to your use-case. The plugins available are organized as follows:
no.elhub.devxp.kotlin-core
- Sets up generic defaults that should be common for all Kotlin/Jvm projects at Elhub. You will not normally apply the kotlin-core plugin directly, but rather use one of the derived plugins mentioned below.no.elhub.devxp.kotlin-application
- Configures the build file to enable builds of fat Jars, package applications, and deploying the resulting distributions to the appropriate maven repository.no.elhub.devxp.kotlin-library
- Configures the build file to pack jar files and deploy them to the appropriate maven repository.no.elhub.devxp.kotlin-service
- Configures the build file for light-weight API deployment.no.elhub.devxp.java-platform
- Configures the build file for java platform.
Applying the appropriate plugin automatically configures build file. OWASP dependency check comes with all the above plugins, You can run dependency-check by executing:
./gradlew dependencyCheckAnalyze
All the plugins can be tested using Gradle:
./gradlew test
Contributing, issues and feature requests are welcome. See the Contributing file.
This project is developed by Elhub. For the specific development group responsible for this code, see the Codeowners file.