Skip to content

Commit

Permalink
Add signing and Maven POM project information
Browse files Browse the repository at this point in the history
  • Loading branch information
Maia Everett committed Apr 2, 2016
1 parent 126e391 commit 28cc4af
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ Its main goal is to eliminate "callback hell" that arises with code heavily invo

* [Javadoc](http://jpromises.lucidfox.org/javadoc/)

## Why not [JDeferred](http://jdeferred.org)?
## Advantages

By all means, JDeferred is the more mature and feature complete library. However, this library was written with
the explicit purpose of having a portable promises library in a complex project with GWT and Swing frontends.
It is designed with the following goals:
This library was written with the explicit purpose of having a portable promises library in a complex project with GWT
and Swing frontends. It is designed with the following goals:

1. Minimal required dependencies (only the JDK itself)
2. Compatibility with GWT
Expand Down
35 changes: 35 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'signing'

sourceCompatibility = 1.7
group = 'org.lucidfox.jpromises'
Expand Down Expand Up @@ -87,9 +88,15 @@ artifacts {
archives gwtSourcesJar
}

signing {
sign configurations.archives
}

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: 'file:///home/maia/workspace/promises/jpromises/build/repo/')

addFilter('default') {artifact, file ->
Expand All @@ -108,9 +115,37 @@ uploadArchives {
distribution 'repo'
}
}

developers {
developer {
name 'Maia Everett'
email '[email protected]'
url 'http://lucidfox.org'
}
}

scm {
url 'https://github.com/lucidfox/jpromises'
connection 'https://github.com/lucidfox/jpromises.git'
developerConnection '[email protected]:lucidfox/jpromises.git'
}

name 'Java Library for Promises'
description 'An implementation of Promises in Java based on the JavaScript Promises/A+ specification,' +
' with adapters for AWT and GWT.'
url 'https://github.com/lucidfox/jpromises'
}

pom('gwt').project {
name 'Java Library for Promises - GWT module'
description 'An implementation of Promises in Java based on the JavaScript Promises/A+ specification,' +
' with adapters for AWT and GWT. This artifact contains a GWT module with packaged sources.'
url 'https://github.com/lucidfox/jpromises'
}

pom('gwt').model.licenses = pom('default').model.licenses
pom('gwt').model.developers = pom('default').model.developers
pom('gwt').model.scm = pom('default').model.scm

pom('gwt').withXml {
// ugh, ugly
Expand Down

0 comments on commit 28cc4af

Please sign in to comment.