Skip to content

Commit 58da29a

Browse files
committed
Aggregate publication
1 parent 4204a44 commit 58da29a

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,21 @@ plugins {
5050
id 'elasticsearch.run-ccs'
5151
id 'elasticsearch.release-tools'
5252
id 'elasticsearch.versions'
53+
id("com.gradleup.nmcp.aggregation").version("0.1.4")
54+
}
55+
version = VersionProperties.elasticsearch
56+
nmcpAggregation {
57+
centralPortal {
58+
username = 'blubb' // TODO("Create a token username at https://central.sonatype.com/account")
59+
password = 'blubb' // TODO("Create a token password at https://central.sonatype.com/account")
60+
// publish manually from the portal
61+
publishingType = "USER_MANAGED"
62+
}
5363
}
5464

65+
dependencies {
66+
nmcpAggregation(project(":libs:cli"))
67+
}
5568
/**
5669
* This is a convenient method for declaring test artifact dependencies provided by the internal
5770
* test artifact plugin. It replaces basically the longer dependency notation with explicit capability

libs/cli/build.gradle

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,12 @@
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
99
plugins {
10-
id("com.gradleup.nmcp").version("0.1.4")
10+
id("com.gradleup.nmcp")
1111
}
12-
apply plugin: 'elasticsearch.build'
13-
apply plugin: 'elasticsearch.publish'
14-
15-
16-
// Create your publications
1712

18-
// Create your publications
1913

20-
nmcp {
21-
centralPortal {
22-
username = "blubb" //TODO("Create a token username at https://central.sonatype.com/account")
23-
password = "blubb" //TODO("Create a token password at https://central.sonatype.com/account")
24-
// publish manually from the portal
25-
publishingType = "USER_MANAGED"
26-
// or if you want to publish automatically
27-
publishingType = "AUTOMATIC"
28-
}
29-
}
14+
apply plugin: 'elasticsearch.build'
15+
apply plugin: 'elasticsearch.publish'
3016

3117
dependencies {
3218
api 'net.sf.jopt-simple:jopt-simple:5.0.2'

0 commit comments

Comments
 (0)