File tree 3 files changed +168
-74
lines changed
src/main/java/com/tonyodev/fetch2
3 files changed +168
-74
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,16 @@ apply plugin: 'kotlin-android'
4
4
5
5
apply plugin : ' kotlin-kapt'
6
6
7
+ apply plugin : ' maven-publish'
8
+
7
9
// apply plugin: 'com.novoda.bintray-release'
8
10
9
11
buildscript {
10
12
apply from : ' ../versions.gradle'
11
13
repositories {
12
14
google()
13
15
jcenter()
16
+ mavenCentral()
14
17
}
15
18
dependencies {
16
19
classpath " com.android.tools.build:gradle:$gradle_tools_version "
@@ -81,6 +84,23 @@ dependencies {
81
84
// website = 'https://github.com/tonyofrancis/fetch'
82
85
// }
83
86
87
+ task sourceJar (type : Jar ) {
88
+ from android. sourceSets. main. java. srcDirs
89
+ classifier " source"
90
+ }
91
+
92
+ publishing {
93
+ publications {
94
+ aar(MavenPublication ) {
95
+ groupId = ' com.tonyodev.fetch2'
96
+ artifactId = ' fetch2'
97
+ version = library_version
98
+ artifact(sourceJar)
99
+ artifact(" $buildDir /outputs/aar/${ project.getName()} -release.aar" )
100
+ }
101
+ }
102
+ }
103
+
84
104
tasks. withType(Javadoc ). all {
85
105
enabled = false
86
106
}
You can’t perform that action at this time.
0 commit comments