-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmaven.gradle
49 lines (43 loc) · 1.31 KB
/
maven.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
apply plugin: 'maven-publish'
def currentProject = this
//generate sources task
task sourcesJar(type: Jar) {
from project.sourceSets.main.allSource
archiveClassifier = 'sources'
}
//generate javadoc task
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
publishing {
publications {
maven(MavenPublication) {
//name and version of the artifact
group 'fr.viveris'
artifactId = currentProject.name
version jnidbus_version
//publish compiled java, sources and javadoc
from currentProject.components.java
artifact sourcesJar
artifact javadocJar
//POM file metadata
pom {
name = 'JNIDBus'
description = 'An efficient and simple wrapper around libdbus'
licenses {
license {
name = 'The Academic Free License, Version 2.1'
url = 'https://spdx.org/licenses/AFL-2.1.html'
}
}
developers {
developer {
id = 'lmascaro'
name = 'Mascaro Lucas'
}
}
}
}
}
}