Showing
3 changed files
with
0 additions
and
72 deletions
@@ -82,7 +82,3 @@ repositories { | @@ -82,7 +82,3 @@ repositories { | ||
82 | url 'http://develop.hh-medic.com/repository/maven-public' | 82 | url 'http://develop.hh-medic.com/repository/maven-public' |
83 | } | 83 | } |
84 | } | 84 | } |
85 | - | ||
86 | -//apply from:'maven-release-aar.gradle' | ||
87 | -apply from:'bintray.gradle' | ||
88 | -apply from:'install.gradle' |
app/maven-release-aar.gradle
deleted
100644 → 0
1 | -// 1.maven-插件 | ||
2 | -apply plugin: 'maven' | ||
3 | - | ||
4 | -// 2.maven-信息 | ||
5 | -//ext {// ext is a gradle closure allowing the declaration of global properties | ||
6 | -// PUBLISH_GROUP_ID = 'com.hhmedic.android.sdk' | ||
7 | -// PUBLISH_ARTIFACT_ID = 'nim' | ||
8 | -// PUBLISH_VERSION = android.defaultConfig.versionName | ||
9 | -//} | ||
10 | - | ||
11 | -def PUBLISH_URL = 'http://develop.hh-medic.com/repository/maven-releases/' | ||
12 | - | ||
13 | -def PUBLISH_GROUP_ID = 'com.hhmedic.android.sdk' | ||
14 | - | ||
15 | -def PUBLISH_ARTIFACT_ID = "base_small" | ||
16 | - | ||
17 | -def PUBLISH_VERSION = android.defaultConfig.versionName | ||
18 | - | ||
19 | - | ||
20 | -// 3.maven-输出路径 | ||
21 | -uploadArchives { | ||
22 | -// repositories.mavenDeployer { | ||
23 | -// //这里就是最后输出地址,在自己电脑上新建个文件夹,把文件夹路径粘贴在此 | ||
24 | -// //注意”file://“ + 路径,有三个斜杠,别漏了 | ||
25 | -// repository(url: "file:///Workspace/Workshop/HHSDKAndroidOutput") | ||
26 | -// | ||
27 | -// pom.project { | ||
28 | -// groupId project.PUBLISH_GROUP_ID | ||
29 | -// artifactId project.PUBLISH_ARTIFACT_ID | ||
30 | -// version project.PUBLISH_VERSION | ||
31 | -// } | ||
32 | -// } | ||
33 | - | ||
34 | - | ||
35 | - repositories{ | ||
36 | - mavenDeployer{ | ||
37 | - repository(url: PUBLISH_URL) { | ||
38 | - authentication(userName: "hh-user", password: "hi9rqvdR") | ||
39 | - } | ||
40 | - | ||
41 | - pom.groupId = PUBLISH_GROUP_ID | ||
42 | - pom.artifactId = PUBLISH_ARTIFACT_ID | ||
43 | - pom.version = PUBLISH_VERSION | ||
44 | - | ||
45 | - pom.project { | ||
46 | - licenses { | ||
47 | - license { | ||
48 | - name 'The Apache Software License, Version 2.0' | ||
49 | - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
50 | - } | ||
51 | - } | ||
52 | - } | ||
53 | - } | ||
54 | - } | ||
55 | -} | ||
56 | - | ||
57 | -//以下代码会生成jar包源文件,如果是不开源码,请不要输入这段 | ||
58 | -//aar包内包含注释 | ||
59 | -//task androidSourcesJar(type: Jar) { | ||
60 | -// classifier = 'sources' | ||
61 | -// from android.sourceSets.main.java.sourceFiles | ||
62 | -//} | ||
63 | -// | ||
64 | -//artifacts { | ||
65 | -// archives androidSourcesJar | ||
66 | -//} |
-
Please register or login to post a comment