-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #51 - switched to maven central and updated documentation
- Loading branch information
1 parent
db2586b
commit 9cd191e
Showing
4 changed files
with
100 additions
and
115 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 was deleted.
Oops, something went wrong.
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,73 @@ | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
task javadocJar(type: Jar) { | ||
group "Build" | ||
description "Create the jar that contains all the class documentation (javadoc)." | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
group "Build" | ||
description "Create the jar that contains all the .class files." | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar, javadocJar | ||
} | ||
|
||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
group = 'com.github.jscancella' | ||
archivesBaseName = 'bagging' | ||
version = project.version | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'bagging' | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'This is a software library intended to support the creation, manipulation, and validation of "bags" from the bagit specification. It currently supports version 0.93 through 1.0.' | ||
url 'https://github.com/jscancella/bagging' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/jscancella/bagging' | ||
developerConnection 'scm:git:ssh://github.com/jscancella/bagging' | ||
url 'https://github.com/jscancella/bagging' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'AGPL-V3' | ||
url 'https://github.com/jscancella/bagging/blob/master/LICENSE.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'blacksmithforlife' | ||
name 'John Scancella' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |