-
Notifications
You must be signed in to change notification settings - Fork 92
/
publish.gradle
82 lines (76 loc) · 2.85 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
apply plugin: 'maven-publish'
tasks.register( 'sourcesJar', Jar ) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
tasks.register( 'javadocJar', Jar ) {
from javadoc
archiveClassifier = 'javadoc'
}
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 {
logger.lifecycle "Publishing groupId: '" + project.group + "', version: '" + project.version + "'"
publishedArtifacts(MavenPublication) {
groupId = project.group
version = project.version
from components.java
artifact sourcesJar
artifact javadocJar
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://[email protected]/hibernate/hibernate-reactive.git'
developerConnection = 'scm:git:ssh://[email protected]/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'
}
}
}
}
}
}