Skip to content

Commit c9eade5

Browse files
nebhalerobertroeser
authored andcommitted
Maven Central POM Requirements (#477)
In order to publish to Maven Central, POMs must contain a minimum set of elements. The automatically generated POM from Gradle's 'maven-publish' plugin does not contain these elements. This change adds build functionality to ensure that the generated POMs are Maven Central compatible.
1 parent b368cac commit c9eade5

File tree

9 files changed

+41
-0
lines changed

9 files changed

+41
-0
lines changed

build.gradle

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,29 @@ subprojects {
9797

9898
artifact sourcesJar
9999
artifact javadocJar
100+
101+
pom.withXml {
102+
asNode().':version' + {
103+
resolveStrategy = DELEGATE_FIRST
104+
105+
name project.name
106+
description project.description
107+
url 'http://rsocket.io'
108+
109+
licenses {
110+
license {
111+
name 'The Apache Software License, Version 2.0'
112+
url 'http://www.apache.org/license/LICENSE-2.0.txt'
113+
}
114+
}
115+
116+
scm {
117+
connection 'scm:git:https://github.com/rsocket/rsocket-java.git'
118+
developerConnection 'scm:git:https://github.com/rsocket/rsocket-java.git'
119+
url 'https://github.com/rsocket/rsocket-java'
120+
}
121+
}
122+
}
100123
}
101124
}
102125
}
@@ -111,6 +134,8 @@ buildScan {
111134
termsOfServiceAgree = 'yes'
112135
}
113136

137+
description = 'RSocket: Stream Oriented Messaging Passing with Reactive Stream Semantics.'
138+
114139
googleJavaFormat {
115140
toolVersion = '1.5'
116141
}

rsocket-core/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ dependencies {
3737
testImplementation 'org.mockito:mockito-core'
3838
}
3939

40+
description = "Core functionality for the RSocket library"
41+
4042
apply from: 'jmh.gradle'

rsocket-examples/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ dependencies {
2828
testCompile 'org.hamcrest:hamcrest-library'
2929
testCompile 'org.mockito:mockito-core'
3030
}
31+
32+
description = 'Example usage of the RSocket library'

rsocket-load-balancer/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ dependencies {
3030
testImplementation 'org.hamcrest:hamcrest-library'
3131
testImplementation 'org.mockito:mockito-core'
3232
}
33+
34+
description = 'Transparent Load Balancer for RSocket'

rsocket-spectator/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ dependencies {
2525
implementation project(':rsocket-core')
2626
implementation 'com.netflix.spectator:spectator-api'
2727
}
28+
29+
description = 'Transparent Metrics exposure to Spectator'

rsocket-test/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ dependencies {
2525
implementation 'junit:junit'
2626
implementation 'org.mockito:mockito-core'
2727
}
28+
29+
description = 'Test utilities for RSocket projects'

rsocket-transport-aeron/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ dependencies {
3030
testImplementation project(':rsocket-test')
3131
testImplementation 'junit:junit'
3232
}
33+
34+
description = 'Aeron RSocket transport implementation'

rsocket-transport-local/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ dependencies {
2727
testImplementation project(':rsocket-test')
2828
testImplementation 'junit:junit'
2929
}
30+
31+
description = 'Local RSocket transport implementation'

rsocket-transport-netty/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ dependencies {
2929
testImplementation project(':rsocket-test')
3030
testImplementation 'junit:junit'
3131
}
32+
33+
description = 'Reactor Netty RSocket transport implementations (TCP, Websocket)'

0 commit comments

Comments
 (0)