File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 3
3
buildscript {
4
4
repositories {
5
5
jcenter()
6
+ maven {
7
+ url " https://jitpack.io"
8
+ }
6
9
}
7
10
dependencies {
8
11
classpath ' com.android.tools.build:gradle:1.0.0'
12
+ classpath ' com.github.dcendents:android-maven-plugin:1.2'
9
13
10
14
// NOTE: Do not place your application dependencies here; they belong
11
15
// in the individual module build.gradle files
@@ -15,5 +19,8 @@ buildscript {
15
19
allprojects {
16
20
repositories {
17
21
jcenter()
22
+ maven {
23
+ url " https://jitpack.io"
24
+ }
18
25
}
19
26
}
Original file line number Diff line number Diff line change @@ -14,4 +14,14 @@ dependencies {
14
14
compile ' com.android.support:recyclerview-v7:21.0.0'
15
15
compile ' com.android.support:support-v4:22.1.1'
16
16
}
17
- apply from : ' ./gradle-mvn-push.gradle'
17
+ apply from : ' ./gradle-mvn-push.gradle'
18
+
19
+ apply plugin : ' android-maven'
20
+ // build a jar with source files
21
+ task sourcesJar (type : Jar ) {
22
+ from android. sourceSets. main. java. srcDirs
23
+ classifier = ' sources'
24
+ }
25
+ artifacts {
26
+ archives sourcesJar
27
+ }
You can’t perform that action at this time.
0 commit comments