-
Notifications
You must be signed in to change notification settings - Fork 1
/
publication.gradle
51 lines (47 loc) · 1.51 KB
/
publication.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
publishing {
repositories {
mavenLocal()
maven {
def releaseRepository = 'https://nexus.fearnixx.de/repository/maven-releases'
def snapshotRepository = 'https://nexus.fearnixx.de/repository/maven-snapshots'
name = 'FNGNexus'
url uri(project.version.endsWith('SNAPSHOT') ? snapshotRepository : releaseRepository)
if (project.hasProperty('fngNexusUser') && project.hasProperty('fngNexusPass')) {
credentials {
username "$fngNexusUser"
password "$fngNexusPass"
}
}
}
}
publications {
api(MavenPublication) {
artifactId = "${project.ext.artifact}-api"
artifact apiJar
artifact apiSourcesJar {
classifier "sources"
}
}
lang(MavenPublication) {
artifactId = "${project.ext.artifact}-lang"
artifact langJar
artifact langSourcesJar {
classifier "sources"
}
}
runtime(MavenPublication) {
artifactId = "${project.ext.artifact}-runtime"
artifact runtimeJar
artifact runtimeSourcesJar {
classifier "sources"
}
}
all(MavenPublication) {
artifactId = project.ext.artifact
artifact allJar
artifact allSourcesJar {
classifier "sources"
}
}
}
}