Gradle java plugin

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

Лицензия

Лицензия

Категории

Категории

Java Языки программирования Gradle Компиляция и сборка
Группа

Группа

com.ekino.oss.gradle.plugin
Идентификатор

Идентификатор

gradle-java-plugin
Последняя версия

Последняя версия

1.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Gradle java plugin
Java plugin applying some configuration for your builds (mavenPublish, testSets, etc ...)
Ссылка на сайт

Ссылка на сайт

https://github.com/ekino/gradle-java-plugin
Система контроля версий

Система контроля версий

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

Скачать gradle-java-plugin

Как подключить последнюю версию

<!-- 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"]

Зависимости

runtime (1)

Идентификатор библиотеки Тип Версия
org.unbroken-dome.gradle-plugins » gradle-testsets-plugin jar 2.1.0

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.3
1.0.2