Single module project base configuration
...Less than 1 minute
Single module project base configuration
Single Java project configuration, seeproject template
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"
}
Groovy
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"
))
}
Groovy
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 = [
'pre-commit': './gradlew build',
'commit-msg': './gradlew commitCheck'
]
}
Configure gradle.properties
Configure project names and groups, wherename
isihub-settingspluginextension properties,group
native project properties
name=demo
group=pub.ihub.demo