Skip to content

Commit 9f197e9

Browse files
committed
Use human readable project description for module name in POMs
1 parent 118f28e commit 9f197e9

File tree

17 files changed

+32
-5
lines changed

17 files changed

+32
-5
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ subprojects { subproj ->
292292

293293
if (subproj.name in mavenizedProjects) {
294294

295+
apply from: "$rootDir/gradle/maven.gradle"
296+
295297
subproj.ext.baseline = null
296298

297299
if (subproj.name in jupiterProjects) {
@@ -309,9 +311,6 @@ subprojects { subproj ->
309311
subproj.baseline = vintageBaseline
310312
}
311313

312-
// apply after `project.group`, etc. have been set
313-
apply from: "$rootDir/gradle/maven.gradle"
314-
315314
configurations {
316315
base
317316
}

gradle/maven.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def mavenDeployer = uploadArchives.repositories.mavenDeployer
4545

4646
[mavenInstaller, mavenDeployer]*.pom {
4747
project {
48-
name "${project.group}:${project.name}"
4948
packaging 'jar'
5049
description "Module \"${project.name}\" of JUnit 5."
5150
url 'http://junit.org/junit5/'
@@ -97,6 +96,8 @@ def mavenDeployer = uploadArchives.repositories.mavenDeployer
9796
}
9897
}
9998
whenConfigured {
99+
// set name lazily to get access to description from subprojects
100+
name = project.description ?: "${project.group}:${project.name}"
100101
dependencies = dependencies.findAll { dep -> dep.scope != 'test' }
101102
}
102103
}

junit-bom/junit-bom.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def mavenDeployer = uploadArchives.repositories.mavenDeployer
1515
[mavenInstaller, mavenDeployer]*.pom {
1616
project {
1717
artifactId = project.name
18-
name = project.description
1918
description = project.description
2019
}
2120
whenConfigured {

junit-jupiter-api/junit-jupiter-api.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
description = 'JUnit Jupiter API'
2+
13
dependencies {
24
api("org.opentest4j:opentest4j:${ota4jVersion}")
35
api(project(":junit-platform-commons"))

junit-jupiter-engine/junit-jupiter-engine.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apply plugin: 'org.junit.platform.gradle.plugin'
22

3+
description = 'JUnit Jupiter Engine'
4+
35
junitPlatform {
46
filters {
57
engines {

junit-jupiter-migrationsupport/junit-jupiter-migrationsupport.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apply plugin: 'org.junit.platform.gradle.plugin'
22

3+
description = 'JUnit Jupiter Migration Support'
4+
35
junitPlatform {
46
filters {
57
engines {

junit-jupiter-params/junit-jupiter-params.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apply plugin: 'org.junit.platform.gradle.plugin'
22
apply plugin: 'com.github.johnrengelman.shadow'
33

4+
description = 'JUnit Jupiter Params'
5+
46
buildscript {
57
repositories {
68
jcenter()

junit-platform-commons/junit-platform-commons.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
description = 'JUnit Platform Commons'
2+
13
jar {
24
manifest {
35
attributes(

junit-platform-console-standalone/junit-platform-console-standalone.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apply plugin: 'java-library'
22
apply plugin: 'com.github.johnrengelman.shadow'
33

4+
description = 'JUnit Platform Console Standalone'
5+
46
buildscript {
57
repositories {
68
jcenter()

junit-platform-console/junit-platform-console.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apply plugin: 'com.github.johnrengelman.shadow'
22

3+
description = 'JUnit Platform Console'
4+
35
buildscript {
46
repositories {
57
jcenter()

0 commit comments

Comments
 (0)