-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpublish.gradle
More file actions
61 lines (54 loc) · 1.67 KB
/
publish.gradle
File metadata and controls
61 lines (54 loc) · 1.67 KB
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
apply plugin: 'maven-publish'
task sourcesJar(type: Jar, dependsOn: classes) {
description 'Builds a jar file full of sources.'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
description 'Builds a jar file full of javadocs.'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
hyperLib(MavenPublication) {
from components.java
artifact sourcesJar {
classifier 'sources'
}
artifact javadocJar {
classifier 'javadoc'
}
groupId 'org.hyperonline'
artifactId 'hyperlib'
pom {
name = 'hyperLib'
description = 'Enhancements to WPILib'
url = 'https://teamhyper.github.io/hyperLib'
developers {
developer {
id = 'blucoat'
name = 'James Hagborg'
email = 'jameshagborg@gmail.com'
}
developer {
id = 'cmcgroarty'
name = 'Chris McGroarty'
email = 'cmcgroarty@hyperalumni.org'
}
}
scm {
url = 'https://github.com/teamhyper/hyperLib'
}
}
}
}
repositories {
repositories.add(rootProject.repositories.getByName('hyperonline'))
repositories.add(rootProject.repositories.getByName('frcHome'))
}
}