This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (85 loc) · 2.38 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
89
90
91
92
93
94
95
96
plugins {
id 'java-library'
id "maven-publish"
id "com.jfrog.bintray" version "1.8.4"
}
repositories {
mavenLocal()
jcenter()
}
dependencies {
api("com.google.protobuf:protobuf-java:3.8.0")
// implementation as Android clients will replace this with grpc-protobuf-lite
implementation("io.grpc:grpc-protobuf:1.26.0")
api("io.grpc:grpc-stub:1.26.0")
// implementation as Android clients will replace this with grpc-okhttp
implementation("io.grpc:grpc-netty:1.26.0")
}
// Publishing config
ext {
bintrayOrg = 'hpi'
bintrayRepo = 'hpi-cloud-mvn'
bintrayName = 'hpi-cloud'
publishedGroupId = 'de.hpi.cloud'
artifact = 'hpi-cloud'
description = "Auto-generated client libraries for HPI Cloud"
siteUrl = 'https://github.com/HPI-de/hpi-cloud-apis'
issueUrl = 'https://github.com/HPI-de/hpi-cloud-apis/issues'
gitUrl = 'https://github.com/HPI-de/hpi-cloud-apis.git'
githubRepository = 'HPI-de/hpi-cloud-apis'
githubReleaseNotes = 'CHANGELOG.md'
allLicenses = ["Apache-2.0"]
libraryVersion = "0.0.14"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
all(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId publishedGroupId
artifactId artifact
version libraryVersion
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ["all"]
publish = true
pkg {
repo = bintrayRepo
name = bintrayName
userOrg = bintrayOrg
desc = description
websiteUrl = siteUrl
issueTrackerUrl = issueUrl
vcsUrl = gitUrl
licenses = allLicenses
githubRepo = githubRepository
githubReleaseNotesFile = githubReleaseNotes
version {
name = libraryVersion
vcsTag = libraryVersion
}
}
}
bintrayUpload.dependsOn generatePomFileForAllPublication