forked from cloudendpoints/endpoints-management-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (49 loc) · 1.9 KB
/
build.gradle
File metadata and controls
54 lines (49 loc) · 1.9 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
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
// https://github.com/ben-manes/gradle-versions-plugin/releases
id("com.github.ben-manes.versions") version "0.46.0"
// https://github.com/gradle-nexus/publish-plugin/releases
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
subprojects {
ext {
libraries = [
grpcBom: "io.grpc:grpc-bom:${grpcVersion}",
grpcStub: "io.grpc:grpc-stub",
grpcProtobuf: "io.grpc:grpc-protobuf",
protobufJavaBom: "com.google.protobuf:protobuf-bom:${protobufJavaVersion}",
protobufJava: "com.google.protobuf:protobuf-java",
protobufJavaUtil: "com.google.protobuf:protobuf-java-util",
]
}
}
// Plugin to publish to Central https://github.com/gradle-nexus/publish-plugin/
// This plugin ensures a separate, named staging repo is created for each build when publishing.
nexusPublishing {
packageGroup.set("com.uwetrottmann")
repositories {
sonatype {
if (project.hasProperty("SONATYPE_NEXUS_USERNAME") && project.hasProperty("SONATYPE_NEXUS_PASSWORD")) {
println("nexusPublishing credentials supplied.")
username.set(project.property("SONATYPE_NEXUS_USERNAME").toString())
password.set(project.property("SONATYPE_NEXUS_PASSWORD").toString())
} else {
println("nexusPublishing credentials NOT supplied.")
}
}
}
}