- Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathpublish.gradle
83 lines (77 loc) · 2.89 KB
/
publish.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
apply plugin: 'java'
apply plugin: 'maven-publish'
// Java / publishing
java {
// Configure the Java "software component" to include javadoc and sources jars in addition to the classes jar.
// Ultimately, this component is what makes up the publication for this project.
withJavadocJar()
withSourcesJar()
}
jar {
manifest {
attributes(
// Basic JAR manifest attributes
'Specification-Title': project.name,
'Specification-Version': project.version,
'Specification-Vendor': 'Hibernate.org',
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor': 'Hibernate.org',
'Implementation-Vendor-Id': 'org.hibernate',
'Implementation-Url': 'http://hibernate.org/reactive',
)
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
options.addStringOption('Xdoclint:none', '-quiet')
}
publishing {
publications {
register( "publishedArtifacts", MavenPublication) {
from components.java
pom {
name = project.mavenPomName
description = project.description
url ='https://github.com/hibernate/hibernate-reactive'
organization {
name ='Hibernate.org'
url ='https://hibernate.org'
}
licenses {
license {
name ='Apache License Version 2.0'
url ='https://opensource.org/licenses/Apache-2.0'
comments ='See discussion at http://hibernate.org/community/license/ for more details.'
distribution ='repo'
}
}
issueManagement {
system ='github'
url ='https://github.com/hibernate/hibernate-reactive/issues'
}
scm {
connection ='scm:git:ssh://git@github.com/hibernate/hibernate-reactive.git'
developerConnection ='scm:git:ssh://git@github.com/hibernate/hibernate-reactive.git'
url ='https://github.com/hibernate/hibernate-reactive.git'
}
developers {
developer {
id ='hibernate-team'
name ='The Hibernate Development Team'
organization ='Hibernate.org'
organizationUrl ='https://hibernate.org'
}
}
}
}
}
repositories {
maven {
name ="staging"
url = rootProject.layout.buildDirectory.dir("staging-deploy${File.separator}maven")
}
}
}