forked from ratpack/ratpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bits to satisfy Sonatype POM validation requirements.
- Loading branch information
Showing
18 changed files
with
98 additions
and
48 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -31,26 +31,26 @@ if (jvmEncoding != "UTF-8") { | |
throw new IllegalStateException("Build environment must be UTF-8 (it is: $jvmEncoding) - add '-Dfile.encoding=UTF-8' to the GRADLE_OPTS environment variable ") | ||
} | ||
|
||
apply plugin: 'artifactory' | ||
|
||
artifactory { | ||
contextUrl = 'http://oss.jfrog.org' | ||
} | ||
gradle.buildFinished { | ||
// Work around https://www.jfrog.com/jira/browse/GAP-145 | ||
[ | ||
org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention, | ||
org.jfrog.build.client.ArtifactoryClientConfiguration.BuildInfoHandler, | ||
org.jfrog.build.client.ArtifactoryClientConfiguration.ProxyHandler, | ||
org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig | ||
].each { | ||
GroovySystem.metaClassRegistry.removeMetaClass(it) | ||
} | ||
} | ||
|
||
artifactoryPublish { | ||
skip true | ||
} | ||
//apply plugin: 'artifactory' | ||
// | ||
//artifactory { | ||
// contextUrl = 'http://oss.jfrog.org' | ||
//} | ||
//gradle.buildFinished { | ||
// // Work around https://www.jfrog.com/jira/browse/GAP-145 | ||
// [ | ||
// org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention, | ||
// org.jfrog.build.client.ArtifactoryClientConfiguration.BuildInfoHandler, | ||
// org.jfrog.build.client.ArtifactoryClientConfiguration.ProxyHandler, | ||
// org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig | ||
// ].each { | ||
// GroovySystem.metaClassRegistry.removeMetaClass(it) | ||
// } | ||
//} | ||
// | ||
//artifactoryPublish { | ||
// skip true | ||
//} | ||
|
||
allprojects { | ||
group = "io.ratpack" | ||
|
@@ -203,26 +203,29 @@ subprojects { | |
} | ||
|
||
if (project in publishedModules) { | ||
apply plugin: "artifactory" | ||
artifactoryPublish { task -> | ||
rootProject.artifactory { | ||
publish { | ||
repository { | ||
repoKey = isSnapshot ? 'oss-snapshot-local' : 'oss-release-local' | ||
gradle.taskGraph.whenReady { taskGraph -> | ||
if (taskGraph.hasTask(task)) { | ||
username = ratpackBintrayUser | ||
password = ratpackBintrayApiKey | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
// apply plugin: "artifactory" | ||
// artifactoryPublish { task -> | ||
// rootProject.artifactory { | ||
// publish { | ||
// repository { | ||
// repoKey = isSnapshot ? 'oss-snapshot-local' : 'oss-release-local' | ||
// gradle.taskGraph.whenReady { taskGraph -> | ||
// if (taskGraph.hasTask(task)) { | ||
// username = ratpackBintrayUser | ||
// password = ratpackBintrayApiKey | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
|
||
assert description: "Project $project.path is published, must have a description" | ||
|
||
modifyPom { | ||
project { | ||
description "A toolkit for JVM web applications" | ||
name project.name | ||
description project.description | ||
url "http://www.ratpack.io" | ||
licenses { | ||
license { | ||
|
@@ -236,6 +239,28 @@ subprojects { | |
developerConnection "scm:[email protected]:ratpack/ratpack.git" | ||
url "https://github.com/ratpack/ratpack" | ||
} | ||
developers { | ||
developer { | ||
id "ratpack" | ||
name "Team Ratpack" | ||
} | ||
} | ||
} | ||
} | ||
|
||
uploadArchives { task -> | ||
repositories.mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
gradle.taskGraph.whenReady { taskGraph -> | ||
if (taskGraph.hasTask(task)) { | ||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: sonatypeOssUsername, password: sonatypeOssPassword) | ||
} | ||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: sonatypeOssUsername, password: sonatypeOssPassword) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|