{"id":43786095,"url":"https://github.com/coditory/gradle-build-plugin","last_synced_at":"2026-02-05T19:04:03.124Z","repository":{"id":59072931,"uuid":"250102071","full_name":"coditory/gradle-build-plugin","owner":"coditory","description":"Gradle plugins with typical configuration for Java based project","archived":false,"fork":false,"pushed_at":"2025-04-07T22:01:39.000Z","size":218,"stargazers_count":4,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-07T22:33:37.704Z","etag":null,"topics":["gradle","gradle-plugins"],"latest_commit_sha":null,"homepage":"","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/coditory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["coditory"]}},"created_at":"2020-03-25T22:06:58.000Z","updated_at":"2025-04-07T21:52:46.000Z","dependencies_parsed_at":"2023-02-01T00:47:23.547Z","dependency_job_id":"d5938750-c1cd-4199-81ee-3da6eeb9f3f7","html_url":"https://github.com/coditory/gradle-build-plugin","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/coditory/gradle-build-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-build-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-build-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-build-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-build-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coditory","download_url":"https://codeload.github.com/coditory/gradle-build-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-build-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29130113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T18:55:47.139Z","status":"ssl_error","status_checked_at":"2026-02-05T18:55:04.010Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gradle","gradle-plugins"],"created_at":"2026-02-05T19:04:03.046Z","updated_at":"2026-02-05T19:04:03.102Z","avatar_url":"https://github.com/coditory.png","language":"Kotlin","readme":"# Build Gradle Plugin\n[![Build](https://github.com/coditory/gradle-build-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/coditory/gradle-build-plugin/actions/workflows/build.yml)\n[![Coverage Status](https://coveralls.io/repos/github/coditory/gradle-build-plugin/badge.svg)](https://coveralls.io/github/coditory/gradle-build-plugin)\n[![Gradle Plugin Portal](https://img.shields.io/badge/Plugin_Portal-v0.1.20-green.svg)](https://plugins.gradle.org/plugin/com.coditory.build)\n\nThis plugin applies a typical configuration for Coditory JVM projects:\n- Adds [manifest generation](https://github.com/coditory/gradle-manifest-plugin)\n- Adds [integration tests](https://github.com/coditory/gradle-integration-test-plugin)\n- Sets up some [reasonable defaults](#add-reasonable-defaults) for java projects\n\n## Enabling the plugin\n\nAdd to your `build.gradle`:\n\n```gradle\nplugins {\n  id 'com.coditory.build' version '0.1.20'\n}\n```\n\n## Add reasonable defaults\n\nAdds maven central as the default repository:\n\n```gradle\n// add a default repository\nrepositories {\n    mavenCentral()\n}\n\n// enable junit and produce logs for tests\ntasks.withType(Test) {\n    useJUnitPlatform()\n    testLogging {\n        exceptionFormat = \"full\"\n        events = [\"passed\", \"skipped\", \"failed\"]\n    }\n}\n\ntasks.withType(JavaCompile) {\n    // make all test/main builds use UTF-8\n    options.encoding = \"UTF-8\"\n    // produce error on lint problems\n    options.compilerArgs \u003c\u003c \"-Werror\"\n    options.compilerArgs \u003c\u003c \"-Xlint\"\n    options.compilerArgs \u003c\u003c \"-Xlint:-serial\"\n}\n\ntasks.withType(GroovyCompile) {\n    // make all test/main builds use UTF-8\n    groovyOptions.encoding = \"UTF-8\"\n}\n\ntasks.withType(KotlinCompile) {\n    // produce errors on warnings\n    kotlinOptions.allWarningsAsErrors = true\n}\n\n// the most recent ktlint version (that does not cause problems)\n// https://github.com/JLLeitschuh/ktlint-gradle/issues/589\nktlint {\n    version.set(\"0.45.2\")\n}\n\n// make Jacoco report combine all types of tests\njacocoTestReport {\n    executionData(fileTree(project.buildDir).include(\"jacoco/*.exec\"))\n    reports {\n        xml.required = true\n        html.required = true\n    }\n}\n\n// make javadoc less strict to limit noisy logs\njavadoc {\n    source = sourceSets.main.allJava\n    classpath = configurations.compileClasspath\n    failOnError = false\n    options {\n        this as StandardJavadocDocletOptions\n        addBooleanOption(\"Xdoclint:none\", true)\n        addStringOption(\"Xmaxwarns\", \"1\")\n        memberLevel = JavadocMemberLevel.PUBLIC\n        outputLevel = JavadocOutputLevel.QUIET\n        encoding = \"UTF-8\"\n    }\n}\n```\n\nYou're responsible to setup jvm toolchains:\n```\n// build.gradle for java:\njava {\n    toolchain {\n        languageVersion = JavaLanguageVersion.of(11)\n    }\n}\n\n// build.gradle.kts for kotlin \u003e=1.8:\nkotlin {\n    jvmToolchain {\n        languageVersion.set(JavaLanguageVersion.of(11))\n    }\n}\n\n// build.gradle.kts of for kotlin \u003c1.8\nkotlin {\n    jvmToolchain {\n        (this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))\n    }\n}\n```\n","funding_links":["https://github.com/sponsors/coditory"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgradle-build-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoditory%2Fgradle-build-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgradle-build-plugin/lists"}