-
Notifications
You must be signed in to change notification settings - Fork 28
/
mavenPublish.gradle
79 lines (68 loc) · 2.45 KB
/
mavenPublish.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
apply from: rootProject.file("gradle/native-build.gradle")
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'signing'
jar {
exclude "**/impl/Desktop**", "**/impl/IOS**", "**/impl/Android**", "META-INF/substrate"
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier.set('sources')
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
archiveClassifier.set('javadoc')
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
artifact androidJar
artifact iosJar
artifact desktopJar
pom {
name = "Gluon Attach (${project.name})"
description = "API for accessing ${project.name} features"
url = 'https://github.com/gluonhq/attach/'
developers {
developer {
name = 'Johan Vos'
email = 'johan.vos@gluonhq.com'
organization = 'Gluon'
organizationUrl = 'https://gluonhq.com'
}
developer {
name = 'Joeri Sykora'
email = 'joeri.sykora@gluonhq.com'
organization = 'Gluon'
organizationUrl = 'https://gluonhq.com'
}
developer {
name = 'Erwin Morrhey'
email = 'erwin.morrhey@gluonhq.com'
organization = 'Gluon'
organizationUrl = 'https://gluonhq.com'
}
}
licenses {
license {
name = 'The GNU General Public License'
url = 'https://opensource.org/licenses/GPL-3.0'
distribution = 'repo'
}
}
scm {
connection = 'scm:git:https://github.com/gluonhq/attach.git'
developerConnection = 'scm:git:ssh://git@github.com/gluonhq/attach.git'
url = 'https://github.com/gluonhq/attach'
}
}
}
}
}
signing {
sign publishing.publications.maven
required = { gradle.taskGraph.hasTask(publish) && !version.endsWith("SNAPSHOT") }
}