| author | Da Risk <da_risk@geekorum.com> |
| Sun, 17 May 2020 20:20:41 -0400 | |
| changeset 11 | 70d9c0462f0d |
| parent 6 | 99ad8c14fec2 |
| child 20 | 5d8a0555733d |
| permissions | -rw-r--r-- |
|
6
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
1 |
/* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
2 |
* Geekdroid is a utility library for development on the Android |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
3 |
* Platform. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
4 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
5 |
* Copyright (C) 2017-2020 by Frederic-Charles Barthelery. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
6 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
7 |
* This file is part of Geekdroid. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
8 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
9 |
* Geekdroid is free software: you can redistribute it and/or modify |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
10 |
* it under the terms of the GNU General Public License as published by |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
11 |
* the Free Software Foundation, either version 3 of the License, or |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
12 |
* (at your option) any later version. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
13 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
14 |
* Geekdroid is distributed in the hope that it will be useful, |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
17 |
* GNU General Public License for more details. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
18 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
19 |
* You should have received a copy of the GNU General Public License |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
20 |
* along with Geekdroid. If not, see <http://www.gnu.org/licenses/>. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
21 |
*/ |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
1
diff
changeset
|
22 |
|
| 1 | 23 |
/** |
24 |
* This configuration allows to publish android libraries into a maven repository. |
|
25 |
* You need to define in your build.gradle the following variables : |
|
26 |
* version = "1.0" // the version of your projects |
|
27 |
* ext.artifactId="geny-widgets" // the maven artifact id |
|
28 |
* Use ./gradlew tasks to see the name of the publishing tasks. |
|
29 |
*/ |
|
30 |
if (plugins.hasPlugin("com.android.library")) {
|
|
31 |
||
32 |
apply plugin: 'maven-publish' |
|
33 |
||
34 |
if (!project.ext.properties.containsKey("artifactId")) {
|
|
35 |
ext.artifactId = project.name |
|
36 |
} |
|
37 |
||
38 |
publishing {
|
|
39 |
publications {
|
|
40 |
projectRelease(MavenPublication) {
|
|
41 |
artifactId project.artifactId |
|
42 |
artifact "build/outputs/aar/${project.archivesBaseName}-release.aar"
|
|
43 |
} |
|
44 |
||
45 |
projectSnapshot(MavenPublication) {
|
|
46 |
artifactId project.artifactId |
|
47 |
artifact "build/outputs/aar/${project.archivesBaseName}-debug.aar"
|
|
48 |
version getVersion() + "-SNAPSHOT" |
|
49 |
} |
|
50 |
} |
|
51 |
} |
|
52 |
} |