Skip to content

Commit c9b8628

Browse files
committed
build structure for publish maven repo on bintray
1 parent c06bccd commit c9b8628

20 files changed

+32
-3
lines changed

build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ buildscript {
33
jcenter()
44
}
55
dependencies {
6-
classpath 'com.android.tools.build:gradle:1.1.3'
6+
classpath 'com.android.tools.build:gradle:1.2.3'
7+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
8+
classpath 'com.github.dcendents:android-maven-plugin:1.2'
79
}
810
}
911

File renamed without changes.
File renamed without changes.
File renamed without changes.

LayoutCast/build.gradle renamed to library/build.gradle

+27
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,30 @@ android {
5353
release.setRoot('build-types/release')
5454
}
5555
}
56+
57+
ext {
58+
bintrayRepo = 'mvn'
59+
bintrayName = 'layoutcast'
60+
61+
publishedGroupId = 'com.github.mmin18.layoutcast'
62+
libraryName = 'LayoutCast'
63+
artifact = 'library'
64+
65+
libraryDescription = 'Android develop tool to help cast layout changes to the running application through ADB.'
66+
67+
siteUrl = 'https://github.com/mmin18/LayoutCast'
68+
gitUrl = 'https://github.com/mmin18/LayoutCast.git'
69+
70+
libraryVersion = '1.0.1'
71+
72+
developerId = 'mmin18'
73+
developerName = 'mmin18'
74+
developerEmail = '[email protected]'
75+
76+
licenseName = 'MIT'
77+
licenseUrl = 'http://opensource.org/licenses/MIT'
78+
allLicenses = ["MIT"]
79+
}
80+
81+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
82+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sample-androidstudio/CastGradleTest/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ android {
2727

2828
dependencies {
2929
compile 'com.facebook.fresco:fresco:0.6.0+'
30-
compile project(':LayoutCast')
30+
compile project(':library')
3131
compile project(':sample-androidstudio:CastLibrary')
3232
compile fileTree(dir: 'libs', include: ['*.jar'])
3333
compile 'com.android.support:appcompat-v7:22.2.0'

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
include ':LayoutCast'
1+
include ':library'
22
include ':sample-androidstudio:CastGradleTest', ':sample-androidstudio:CastLibrary'

0 commit comments

Comments
 (0)