Skip to content

Commit 7f0204e

Browse files
Add upload gradle for all
1 parent 9b8b504 commit 7f0204e

File tree

6 files changed

+211
-1
lines changed

6 files changed

+211
-1
lines changed

debug-db-base/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ dependencies {
4545
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
4646
}
4747

48-
//apply from: 'debug-db-upload.gradle'
48+
//apply from: 'debug-db-base-upload.gradle'
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
*
3+
* * Copyright (C) 2019 Amit Shekhar
4+
* * Copyright (C) 2011 Android Open Source Project
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+
20+
apply plugin: 'com.github.dcendents.android-maven'
21+
apply plugin: "com.jfrog.bintray"
22+
23+
def siteUrl = 'https://github.com/amitshekhariitbhu/Android-Debug-Database'
24+
def gitUrl = 'https://github.com/amitshekhariitbhu/Android-Debug-Database.git'
25+
26+
group = "com.amitshekhar.android"
27+
version = '1.0.4'
28+
29+
install {
30+
repositories.mavenInstaller {
31+
pom.project {
32+
packaging 'aar'
33+
34+
name 'Android Debug Database'
35+
description 'Android Debug Database is a powerful library for debugging databases in Android applications'
36+
37+
url siteUrl
38+
39+
licenses {
40+
license {
41+
name 'The Apache Software License, Version 2.0'
42+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
43+
}
44+
}
45+
46+
developers {
47+
developer {
48+
id 'amitshekhariitbhu'
49+
name 'Amit Shekhar'
50+
email 'amit.shekhar.iitbhu@gmail.com'
51+
}
52+
}
53+
54+
scm {
55+
connection gitUrl
56+
developerConnection gitUrl
57+
url siteUrl
58+
}
59+
}
60+
}
61+
}
62+
63+
task sourcesJar(type: Jar) {
64+
from android.sourceSets.main.java.srcDirs
65+
classifier = 'sources'
66+
}
67+
68+
task javadoc(type: Javadoc) {
69+
source = android.sourceSets.main.java.srcDirs
70+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
71+
classpath += configurations.compile
72+
}
73+
74+
task javadocJar(type: Jar, dependsOn: javadoc) {
75+
classifier = 'javadoc'
76+
from javadoc.destinationDir
77+
}
78+
artifacts {
79+
archives javadocJar
80+
archives sourcesJar
81+
}
82+
83+
if (project.rootProject.file("local.properties").exists()) {
84+
Properties properties = new Properties()
85+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
86+
87+
bintray {
88+
user = properties.getProperty("bintray.user")
89+
key = properties.getProperty("bintray.apikey")
90+
91+
configurations = ['archives']
92+
dryRun = false
93+
94+
pkg {
95+
repo = "maven"
96+
name = "debug-db-base"
97+
websiteUrl = siteUrl
98+
vcsUrl = gitUrl
99+
licenses = ["Apache-2.0"]
100+
publish = true
101+
}
102+
}
103+
}

debug-db-encrypt/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ dependencies {
2424
androidTestImplementation 'com.android.support.test:runner:1.0.2'
2525
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
2626
}
27+
28+
//apply from: 'debug-db-encrypt-upload.gradle'
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
*
3+
* * Copyright (C) 2019 Amit Shekhar
4+
* * Copyright (C) 2011 Android Open Source Project
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+
20+
apply plugin: 'com.github.dcendents.android-maven'
21+
apply plugin: "com.jfrog.bintray"
22+
23+
def siteUrl = 'https://github.com/amitshekhariitbhu/Android-Debug-Database'
24+
def gitUrl = 'https://github.com/amitshekhariitbhu/Android-Debug-Database.git'
25+
26+
group = "com.amitshekhar.android"
27+
version = '1.0.4'
28+
29+
install {
30+
repositories.mavenInstaller {
31+
pom.project {
32+
packaging 'aar'
33+
34+
name 'Android Debug Database'
35+
description 'Android Debug Database is a powerful library for debugging databases in Android applications'
36+
37+
url siteUrl
38+
39+
licenses {
40+
license {
41+
name 'The Apache Software License, Version 2.0'
42+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
43+
}
44+
}
45+
46+
developers {
47+
developer {
48+
id 'amitshekhariitbhu'
49+
name 'Amit Shekhar'
50+
email 'amit.shekhar.iitbhu@gmail.com'
51+
}
52+
}
53+
54+
scm {
55+
connection gitUrl
56+
developerConnection gitUrl
57+
url siteUrl
58+
}
59+
}
60+
}
61+
}
62+
63+
task sourcesJar(type: Jar) {
64+
from android.sourceSets.main.java.srcDirs
65+
classifier = 'sources'
66+
}
67+
68+
task javadoc(type: Javadoc) {
69+
source = android.sourceSets.main.java.srcDirs
70+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
71+
classpath += configurations.compile
72+
}
73+
74+
task javadocJar(type: Jar, dependsOn: javadoc) {
75+
classifier = 'javadoc'
76+
from javadoc.destinationDir
77+
}
78+
artifacts {
79+
archives javadocJar
80+
archives sourcesJar
81+
}
82+
83+
if (project.rootProject.file("local.properties").exists()) {
84+
Properties properties = new Properties()
85+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
86+
87+
bintray {
88+
user = properties.getProperty("bintray.user")
89+
key = properties.getProperty("bintray.apikey")
90+
91+
configurations = ['archives']
92+
dryRun = false
93+
94+
pkg {
95+
repo = "maven"
96+
name = "debug-db-encrypt"
97+
websiteUrl = siteUrl
98+
vcsUrl = gitUrl
99+
licenses = ["Apache-2.0"]
100+
publish = true
101+
}
102+
}
103+
}

debug-db/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ dependencies {
2323
androidTestImplementation 'com.android.support.test:runner:1.0.2'
2424
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
2525
}
26+
27+
//apply from: 'debug-db-upload.gradle'
File renamed without changes.

0 commit comments

Comments
 (0)