-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
919 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ somasun = somasun <[email protected]> | |
stevegury = Steve Gury <[email protected]> | ||
tmontgomery = Todd L. Montgomery <[email protected]> | ||
yschimke = Yuri Schimke <[email protected]> | ||
OlegDokuka = Oleh Dokuka <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,13 @@ subprojects { | |
googleJavaFormat { | ||
toolVersion = '1.6' | ||
} | ||
|
||
|
||
ext { | ||
if (project.hasProperty('versionSuffix')) { | ||
project.version += project.getProperty('versionSuffix') | ||
} | ||
} | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom "io.projectreactor:reactor-bom:${ext['reactor-bom.version']}" | ||
|
@@ -177,6 +183,16 @@ subprojects { | |
name 'Yuri Schimke' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'OlegDokuka' | ||
name 'Oleh Dokuka' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'mostroverkhov' | ||
name 'Maksym Ostroverkhov' | ||
email '[email protected]' | ||
} | ||
} | ||
|
||
scm { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
/* | ||
* Copyright 2015-2019 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
plugins { | ||
id 'java-library' | ||
id 'maven' | ||
id 'maven-publish' | ||
id 'com.jfrog.artifactory' | ||
id 'com.jfrog.bintray' | ||
id 'io.morethan.jmhreport' | ||
id 'me.champeau.gradle.jmh' | ||
} | ||
|
||
description = 'Bill of materials to make sure a consistent set of versions is used for RSocket-Java.' | ||
configurations.archives.artifacts.clear() | ||
|
||
build.doLast { | ||
pom { | ||
customizePom(it, project) | ||
} | ||
} | ||
|
||
dependencies { | ||
compile project(':rsocket-core') | ||
compile project(':rsocket-test') | ||
compile project(':rsocket-load-balancer') | ||
compile project(':rsocket-micrometer') | ||
compile project(':rsocket-transport-local') | ||
compile project(':rsocket-transport-netty') | ||
} | ||
|
||
def customizePom(generatedPom, gradleProject) { | ||
//make sure that dependencies are under <dependencyManagement> | ||
generatedPom.withXml { | ||
if (generatedPom.generatedDependencies.size > 0) { | ||
asNode().appendNode('dependencyManagement', asNode().dependencies) | ||
asNode().dependencies.replaceNode {} | ||
} | ||
} | ||
|
||
generatedPom.project { | ||
name = 'RSocket-Java Release Train - BOM' | ||
description = gradleProject.description | ||
url = 'http://rsocket.io' | ||
groupId = group | ||
packaging = "pom" | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'robertroeser' | ||
name 'Robert Roeser' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'rdegnan' | ||
name 'Ryland Degnan' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'yschimke' | ||
name 'Yuri Schimke' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'OlegDokuka' | ||
name 'Oleh Dokuka' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'mostroverkhov' | ||
name 'Maksym Ostroverkhov' | ||
email '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/rsocket/rsocket-java.git' | ||
developerConnection = 'scm:git:ssh://github.com/rsocket/rsocket-java.git' | ||
url = 'http://github.com/rsocket/rsocket-java/' | ||
} | ||
issueManagement { | ||
system = "GitHub Issues" | ||
url = "https://github.com/rsocket/rsocket-java/issues" | ||
} | ||
} | ||
|
||
generatedPom.writeTo("$buildDir/poms/rsocket-bom-${version}.xml") | ||
} | ||
plugins.withType(MavenPublishPlugin) { | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
pom.withXml { | ||
def sb = asString() | ||
sb.setLength 0 | ||
sb.append file("$buildDir/poms/rsocket-bom-${version}.xml").text | ||
println(sb.toString()) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
publish.dependsOn("build") | ||
publishToMavenLocal.dependsOn("build") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.