diff --git a/gradle.properties b/gradle.properties index 889b371..b3c863b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,3 +8,11 @@ VERSION_NAME=0.1.0 POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt POM_LICENCE_DIST=repo + +POM_DESCRIPTION=Gradle plugin to keep your modules graph healthy and lean. +POM_URL=https://github.com/jraska/modules-graph-assert +POM_NAME=Modules Graph Assert + +POM_SCM_URL=https://github.com/jraska/modules-graph-assert +POM_SCM_CONNECTION=scm:git:git://github.com/jraska/modules-graph-assert.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com/jraska/modules-graph-assert.git diff --git a/plugin/build.gradle b/plugin/build.gradle index e2ba9fc..8d580a6 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -34,17 +34,38 @@ java { group = 'com.jraska.module.graph.assertion' gradlePlugin { - website = 'https://github.com/jraska/modules-graph-assert' - vcsUrl = 'https://github.com/jraska/modules-graph-assert' + website = POM_URL + vcsUrl = POM_URL plugins { modulesGraphAssert { id = 'com.jraska.module.graph.assertion' version = '2.7.2' - displayName = 'Modules Graph Assert' - description = 'Gradle plugin to keep your modules graph healthy and lean.' + displayName = POM_NAME + description = POM_DESCRIPTION implementationClass = 'com.jraska.module.graph.assertion.ModuleGraphAssertionsPlugin' tags.addAll('graph', 'assert', 'build speed', 'android', 'java', 'kotlin', 'quality', 'multiprojects', 'module') } } } + +afterEvaluate { + publishing.publications.forEach { + it.pom { + name = POM_NAME + description = POM_DESCRIPTION + url = POM_URL + licenses { + license { + name = POM_LICENCE_NAME + url = POM_LICENCE_URL + } + } + scm { + connection = POM_SCM_CONNECTION + developerConnection = POM_SCM_DEV_CONNECTION + url = POM_SCM_URL + } + } + } +}