Skip to main content

Single module project base configuration

Henry...Less than 1 minute

Single module project base configuration

Single Java project configuration, seeproject templateopen in new window

Configure wrapper

distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip

Configure setting.gradle

Kotlin
plugins {
    id("pub.ihub.plugin.ihub-settings") version "1.6.2"
}

Configure build.gradle

Introducing Java plugins (ihub-java), test plugin (ihub-test) and validation plugin (ihub-verifier), configihub-git-hooksplugin hook command:

Kotlin
plugins {
    id("pub.ihub.plugin.ihub-java")
    id("pub.ihub.plugin.ihub-test")
    id("pub.ihub.plugin.ihub-verification")
    id("pub.ihub.plugin.ihub-git-hooks")
}

iHubGitHooks {
    hooks.set(mapOf(
        "pre-commit" to "./gradlew build",
        "commit-msg" to "./gradlew commitCheck"
    ))
}

Configure gradle.properties

Configure project names and groups, wherenameisihub-settingspluginextension properties,groupnative project properties

name=demo
group=pub.ihub.demo