Gradle java plugin

Java plugin applying some configuration for your builds (mavenPublish, testSets, etc ...)

License

License

Categories

Categories

Java Languages Gradle Build Tools
GroupId

GroupId

com.ekino.oss.gradle.plugin
ArtifactId

ArtifactId

gradle-java-plugin
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle java plugin
Java plugin applying some configuration for your builds (mavenPublish, testSets, etc ...)
Project URL

Project URL

https://github.com/ekino/gradle-java-plugin
Source Code Management

Source Code Management

https://github.com/ekino/gradle-java-plugin

Download gradle-java-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.ekino.oss.gradle.plugin/gradle-java-plugin/ -->
<dependency>
    <groupId>com.ekino.oss.gradle.plugin</groupId>
    <artifactId>gradle-java-plugin</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.ekino.oss.gradle.plugin/gradle-java-plugin/
implementation 'com.ekino.oss.gradle.plugin:gradle-java-plugin:1.0.3'
// https://jarcasting.com/artifacts/com.ekino.oss.gradle.plugin/gradle-java-plugin/
implementation ("com.ekino.oss.gradle.plugin:gradle-java-plugin:1.0.3")
'com.ekino.oss.gradle.plugin:gradle-java-plugin:jar:1.0.3'
<dependency org="com.ekino.oss.gradle.plugin" name="gradle-java-plugin" rev="1.0.3">
  <artifact name="gradle-java-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ekino.oss.gradle.plugin', module='gradle-java-plugin', version='1.0.3')
)
libraryDependencies += "com.ekino.oss.gradle.plugin" % "gradle-java-plugin" % "1.0.3"
[com.ekino.oss.gradle.plugin/gradle-java-plugin "1.0.3"]

Dependencies

runtime (1)

Group / Artifact Type Version
org.unbroken-dome.gradle-plugins » gradle-testsets-plugin jar 2.1.0

Project Modules

There are no modules declared in this project.

gradle java plugin

Java gradle plugin for Ekino projects

Build Status GitHub (pre-)release GitHub license Quality Gate Status

Overview

This plugin configures the following tasks for any Ekino Java project:

  • Apply the Gradle Java plugin
  • Set the source/target compatibility to 11 java version
  • Define the integrationTest source set (it directory) : unbroken-dome/gradle-testsets-plugin
  • Define the test report files aggregation
  • Replace ${project-version} and ${project-description} in YAML files by the gradle project version
  • Define JUnit Platform configuration for JUnit 5 (Jupiter)

Requirement

You need to have a JDK 8 at least.

Gradle 5.6.4 or newer is required.

Nota Bene : some build variables may cause error for launching the gradle command. You have to add a gradle.properties file to the ~/.gradle folder under your home directory with following configuration :

publishingBaseUrl=<NEXUS_BASE_URL>
publishingLogin=<NEXUS_LOGIN>
publishingPassword=<NEXUS_PASSWORD>

<NEXUS_BASE_URL> is the Nexus prefix URL without the repository name, finishing with a dash '/'.

Build

This will create the JAR and run the tests

./gradlew build

Publish locally

This will publish the JAR in your local Maven repository

./gradlew publishToMavenLocal

Usage

Add the plugin in your Gradle build script:

Groovy

plugins {
    id "com.ekino.oss.gradle.plugin.java" version "1.0.2"
}

Kotlin

plugins {
    id("com.ekino.oss.gradle.plugin.java") version "1.0.2"
}

You can override Java version using a dedicated configuration (default is 11):

javaPlugin {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}
com.ekino.oss.gradle.plugin

Ekino

Versions

Version
1.0.3
1.0.2