{"id":20364096,"url":"https://github.com/ekino/gradle-java-plugin","last_synced_at":"2025-04-12T04:33:08.610Z","repository":{"id":36067843,"uuid":"164907727","full_name":"ekino/gradle-java-plugin","owner":"ekino","description":"Java plugin applying some configuration for your builds (mavenPublish, testSets, etc ...)","archived":false,"fork":false,"pushed_at":"2023-12-04T21:43:11.000Z","size":350,"stargazers_count":5,"open_issues_count":14,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-26T00:04:11.465Z","etag":null,"topics":["ekino","gradle","java"],"latest_commit_sha":null,"homepage":"https://plugins.gradle.org/plugin/com.ekino.oss.gradle.plugin.java","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekino.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-01-09T17:28:11.000Z","updated_at":"2023-01-15T16:35:39.000Z","dependencies_parsed_at":"2023-02-15T08:17:04.390Z","dependency_job_id":"9257b857-981a-45b8-bbb3-7a161ebd6452","html_url":"https://github.com/ekino/gradle-java-plugin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekino%2Fgradle-java-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekino%2Fgradle-java-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekino%2Fgradle-java-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekino%2Fgradle-java-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekino","download_url":"https://codeload.github.com/ekino/gradle-java-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248517399,"owners_count":21117444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ekino","gradle","java"],"created_at":"2024-11-15T00:09:45.994Z","updated_at":"2025-04-12T04:33:08.588Z","avatar_url":"https://github.com/ekino.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gradle java plugin\n\nJava gradle plugin for ekino projects\n\n[![Build Status](https://travis-ci.org/ekino/gradle-java-plugin.svg?branch=master)](https://travis-ci.org/ekino/gradle-java-plugin)\n[![GitHub (pre-)release](https://img.shields.io/github/release/ekino/gradle-java-plugin.svg)](https://github.com/ekino/gradle-java-plugin/releases)\n[![GitHub license](https://img.shields.io/github/license/ekino/gradle-java-plugin.svg)](https://github.com/ekino/gradle-java-plugin/blob/master/LICENSE.md)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ekino_gradle-java-plugin\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=ekino_gradle-java-plugin)\n## Overview\n\nThis plugin configures the following tasks for any Ekino Java project:\n\n* Apply the [Gradle Java plugin](https://docs.gradle.org/current/userguide/java_plugin.html)\n* Set the source/target compatibility to `11` java version\n* Define the `integrationTest` source set (`it` directory) : [unbroken-dome/gradle-testsets-plugin](https://github.com/unbroken-dome/gradle-testsets-plugin)\n* Define the test report files aggregation\n* Replace `${project-version}` and `${project-description}` in YAML files by the gradle project version\n* Define JUnit Platform configuration for JUnit 5 (Jupiter)\n\n## Requirement\n\nYou need to have a JDK 8 at least.\n\nIt requires Gradle 6.8 or later.\n\nNota Bene : some build variables may cause error for launching the gradle command.\nYou have to add a `gradle.properties` file to the `~/.gradle` folder under your home directory with following configuration : \n\n```\npublishingBaseUrl=\u003cNEXUS_BASE_URL\u003e\npublishingLogin=\u003cNEXUS_LOGIN\u003e\npublishingPassword=\u003cNEXUS_PASSWORD\u003e\n```\n\n\u003cNEXUS_BASE_URL\u003e is the Nexus prefix URL without the repository name, finishing with a dash '/'.\n\n## Build\n\nThis will create the JAR and run the tests\n\n```\n./gradlew build\n```\n\n## Publish locally\n\nThis will publish the JAR in your local Maven repository\n\n```\n./gradlew publishToMavenLocal\n```\n\n\n## Usage\n\nAdd the plugin in your Gradle build script:\n\nGroovy\n```groovy\nplugins {\n    id \"com.ekino.oss.gradle.plugin.java\" version \"1.0.2\"\n}\n```\n\nKotlin\n```kotlin\nplugins {\n    id(\"com.ekino.oss.gradle.plugin.java\") version \"1.0.2\"\n}\n```\n\nYou can override Java version using a dedicated configuration (default is 11):\n```groovy\njavaPlugin {\n    sourceCompatibility = JavaVersion.VERSION_1_8\n    targetCompatibility = JavaVersion.VERSION_1_8\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekino%2Fgradle-java-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekino%2Fgradle-java-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekino%2Fgradle-java-plugin/lists"}