Skip to content

Commit

Permalink
Add license information to POM file (#292)
Browse files Browse the repository at this point in the history
Co-authored-by: Thierry Roy <[email protected]>
  • Loading branch information
mr-thierry and Thierry Roy authored Jan 15, 2025
1 parent c1c80a0 commit 6cdffbd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
8 changes: 8 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 25 additions & 4 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}

0 comments on commit 6cdffbd

Please sign in to comment.