Skip to content

Commit fa28081

Browse files
committed
попытка 1 выгрузиться в jitpack
1 parent 1655b28 commit fa28081

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

app/build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven' // ADD THIS
3+
4+
group = 'com.github.rmozg'
25

36
android {
47
compileSdkVersion 25
@@ -19,3 +22,27 @@ android {
1922

2023
dependencies {
2124
}
25+
26+
// build a jar with source files
27+
task sourcesJar(type: Jar) {
28+
from android.sourceSets.main.java.srcDirs
29+
classifier = 'sources'
30+
}
31+
32+
task javadoc(type: Javadoc) {
33+
failOnError false
34+
source = android.sourceSets.main.java.sourceFiles
35+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
36+
classpath += configurations.compile
37+
}
38+
39+
// build a jar with javadoc
40+
task javadocJar(type: Jar, dependsOn: javadoc) {
41+
classifier = 'javadoc'
42+
from javadoc.destinationDir
43+
}
44+
45+
artifacts {
46+
archives sourcesJar
47+
archives javadocJar
48+
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
12+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1213
}
1314
}
1415

0 commit comments

Comments
 (0)