Groovy Project Base Configuration
...Less than 1 minute
Groovy Project Base Configuration
Groovy 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 Groovy plugin (ihu-groovy), test plugin (ihub-test) and validation plugin (ihub-certification), configihub-git-hooksplugin hook command:
Kotlin
plugins {
id("pub.ihub.plugin.ihub-groovy")
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-groovy'
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