-
Notifications
You must be signed in to change notification settings - Fork 7
/
maven-central.gradle
69 lines (61 loc) · 1.7 KB
/
maven-central.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apply plugin: 'signing'
apply plugin: 'maven-publish'
if(!project.hasProperty("ossrhUsername")){ //so CI doesn't break
project.ext.ossrhUsername = "foo"
project.ext.ossrhPassword = "foo"
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
group = 'com.github.jscancella'
artifactId = 'bagging'
version = project.version
from components.java
pom {
name = 'bagging'
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'
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]'
}
}
scm {
connection = 'scm:git:https://github.com/jscancella/bagging'
developerConnection = 'scm:git:ssh://github.com/jscancella/bagging'
url = 'https://github.com/jscancella/bagging'
}
}
}
}
repositories {
maven {
name "OSSRH"
url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}