1+ /*
2+ * Copyright 2021 HyperDevs
3+ *
4+ * Copyright 2020 BQ
5+ *
6+ * Licensed under the Apache License, Version 2.0 (the "License");
7+ * you may not use this file except in compliance with the License.
8+ * You may obtain a copy of the License at
9+ *
10+ * http://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing, software
13+ * distributed under the License is distributed on an "AS IS" BASIS,
14+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ * See the License for the specific language governing permissions and
16+ * limitations under the License.
17+ */
18+
19+ apply plugin : " maven-publish"
20+
21+ group = " com.hyperdevs"
22+ version = androidGitVersion. name()
23+
24+ android {
25+ publishing {
26+ singleVariant(" release" ) {
27+ withSourcesJar()
28+ withJavadocJar()
29+ }
30+ }
31+ }
32+
33+ afterEvaluate {
34+ publishing {
35+ publications {
36+ // Creates a Maven publication called "release".
37+ release(MavenPublication ) {
38+ from components. release
39+ artifactId = " appupdateshelper"
40+
41+ pom {
42+ name = " Android App Updates Helper"
43+ description = " This utility library aims to help Android developers to use the Google Play In-App Updates API in an easy way."
44+ url = " https://github.com/hyperdevs-team/android-app-updates-helper"
45+ version = androidGitVersion. name()
46+ inceptionYear = " 2019"
47+
48+ licenses {
49+ license {
50+ name = " The Apache License, Version 2.0"
51+ url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
52+ }
53+ }
54+
55+ organization {
56+ name = " HyperDevs"
57+ url = " https://github.com/hyperdevs-team"
58+ }
59+
60+ issueManagement {
61+ system = " GitHub Issues"
62+ url = " https://github.com/hyperdevs-team/android-app-updates-helper/issues"
63+ }
64+
65+ scm {
66+ connection = " git@github.com:hyperdevs-team/android-app-updates-helper.git"
67+ url = " https://github.com/hyperdevs-team/android-app-updates-helper.git"
68+ }
69+
70+ developers {
71+ developer {
72+ name = " Adrián García"
73+ id = " adriangl"
74+ url = " https://github.com/adriangl"
75+ roles = [" Maintainer" ]
76+ }
77+ }
78+ }
79+ }
80+ }
81+ }
82+ }
0 commit comments