-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (75 loc) · 2.4 KB
/
build.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
83
84
85
86
87
88
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
group = 'org.opendatadiscovery'
version = file('VERSION').text
ext {
env = findProperty('env') ?: 'dev'
}
if (env == 'prod') {
signing {
sign(publishing.publications)
}
}
jar {
metaInf {
into "wizard" from "manifests"
}
}
publishing {
if (env == 'prod') {
repositories {
maven {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
publications {
maven(MavenPublication) {
groupId = 'org.opendatadiscovery'
artifactId = 'integration-manifests'
version = version
from components.java
pom {
name = 'ODD Integration Manifests'
description = 'OpenDataDiscovery Integration Manifests'
url = 'https://github.com/opendatadiscovery/opendatadiscovery-integration-manifests'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'ndementev'
name = 'Nikita Dementev'
organization = 'opendatadiscovery.org'
}
}
scm {
connection = 'scm:git:git://github.com/opendatadiscovery/opendatadiscovery-integration-manifests.git'
developerConnection = 'scm:git:git://github.com/opendatadiscovery/opendatadiscovery-integration-manifests.git'
url = 'https://github.com/opendatadiscovery/opendatadiscovery-integration-manifests'
}
}
}
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
username = sonatypeUsername
password = sonatypePassword
}
}
}