File tree 9 files changed +104
-6
lines changed
9 files changed +104
-6
lines changed Original file line number Diff line number Diff line change 3
3
// This source code is licensed under the MIT license found in the/
4
4
// LICENSE file in the root directory of this source tree.
5
5
6
- apply plugin : ' java'
7
- apply plugin : ' maven'
6
+ apply plugin : ' java-library '
7
+ apply plugin : ' maven-publish '
8
8
9
9
dependencies {
10
10
compileOnly ' com.google.android:android:4.1.1.4'
@@ -14,12 +14,12 @@ dependencies {
14
14
javadoc. options. addStringOption(' Xdoclint:none' , ' -quiet' )
15
15
16
16
task sourcesJar (type : Jar ) {
17
- classifier = ' sources'
17
+ archiveClassifier . set( ' sources' )
18
18
from sourceSets. main. allJava
19
19
}
20
20
21
21
task javadocJar (type : Jar , dependsOn : javadoc) {
22
- classifier = ' javadoc'
22
+ archiveClassifier . set( ' javadoc' )
23
23
from javadoc. destinationDir
24
24
}
25
25
@@ -49,3 +49,13 @@ java {
49
49
sourceCompatibility = JavaVersion . VERSION_1_8
50
50
targetCompatibility = JavaVersion . VERSION_1_8
51
51
}
52
+
53
+ afterEvaluate {
54
+ publishing {
55
+ publications {
56
+ boltsPublication(MavenPublication ) {
57
+ from components. java
58
+ }
59
+ }
60
+ }
61
+ }
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
2
apply plugin : " kotlin-android"
3
+ apply plugin : " maven-publish"
3
4
apply plugin : " io.freefair.android-javadoc-jar"
4
5
apply plugin : " io.freefair.android-sources-jar"
5
6
@@ -48,3 +49,13 @@ dependencies {
48
49
api " org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion "
49
50
implementation project(" :parse" )
50
51
}
52
+
53
+ afterEvaluate {
54
+ publishing {
55
+ publications {
56
+ release(MavenPublication ) {
57
+ from components. release
58
+ }
59
+ }
60
+ }
61
+ }
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
+ apply plugin : " maven-publish"
2
3
apply plugin : " io.freefair.android-javadoc-jar"
3
4
apply plugin : " io.freefair.android-sources-jar"
4
5
@@ -34,3 +35,13 @@ dependencies {
34
35
testImplementation " org.mockito:mockito-core:3.9.0"
35
36
testImplementation " org.robolectric:robolectric:4.6"
36
37
}
38
+
39
+ afterEvaluate {
40
+ publishing {
41
+ publications {
42
+ release(MavenPublication ) {
43
+ from components. release
44
+ }
45
+ }
46
+ }
47
+ }
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
+ apply plugin : " maven-publish"
2
3
apply plugin : " io.freefair.android-javadoc-jar"
3
4
apply plugin : " io.freefair.android-sources-jar"
4
5
@@ -38,3 +39,13 @@ dependencies {
38
39
api " com.google.firebase:firebase-messaging:22.0.0"
39
40
implementation project(" :parse" )
40
41
}
42
+
43
+ afterEvaluate {
44
+ publishing {
45
+ publications {
46
+ release(MavenPublication ) {
47
+ from components. release
48
+ }
49
+ }
50
+ }
51
+ }
Original file line number Diff line number Diff line change 1
- apply plugin : ' com.android.library'
2
- apply plugin : ' kotlin-android'
1
+ apply plugin : " com.android.library"
2
+ apply plugin : " kotlin-android"
3
+ apply plugin : " maven-publish"
3
4
apply plugin : " io.freefair.android-javadoc-jar"
4
5
apply plugin : " io.freefair.android-sources-jar"
5
6
@@ -36,3 +37,13 @@ dependencies {
36
37
api " com.google.android.gms:play-services-auth:19.2.0"
37
38
implementation project(" :parse" )
38
39
}
40
+
41
+ afterEvaluate {
42
+ publishing {
43
+ publications {
44
+ release(MavenPublication ) {
45
+ from components. release
46
+ }
47
+ }
48
+ }
49
+ }
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
2
apply plugin : " kotlin-android"
3
+ apply plugin : " maven-publish"
3
4
apply plugin : " io.freefair.android-javadoc-jar"
4
5
apply plugin : " io.freefair.android-sources-jar"
5
6
@@ -45,3 +46,13 @@ dependencies {
45
46
api " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version "
46
47
implementation project(" :parse" )
47
48
}
49
+
50
+ afterEvaluate {
51
+ publishing {
52
+ publications {
53
+ release(MavenPublication ) {
54
+ from components. release
55
+ }
56
+ }
57
+ }
58
+ }
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
+ apply plugin : " maven-publish"
2
3
apply plugin : " io.freefair.android-javadoc-jar"
3
4
apply plugin : " io.freefair.android-sources-jar"
4
5
@@ -57,6 +58,16 @@ dependencies {
57
58
testImplementation " com.squareup.okhttp3:mockwebserver:$okhttpVersion "
58
59
}
59
60
61
+ afterEvaluate {
62
+ publishing {
63
+ publications {
64
+ release(MavenPublication ) {
65
+ from components. release
66
+ }
67
+ }
68
+ }
69
+ }
70
+
60
71
// region Code Coverage
61
72
62
73
apply plugin : " com.dicedmelon.gradle.jacoco-android"
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
2
apply plugin : " kotlin-android"
3
+ apply plugin : " maven-publish"
3
4
apply plugin : " io.freefair.android-javadoc-jar"
4
5
apply plugin : " io.freefair.android-sources-jar"
5
6
@@ -44,3 +45,13 @@ dependencies {
44
45
api " io.reactivex.rxjava3:rxjava:3.0.4"
45
46
implementation project(" :parse" )
46
47
}
48
+
49
+ afterEvaluate {
50
+ publishing {
51
+ publications {
52
+ release(MavenPublication ) {
53
+ from components. release
54
+ }
55
+ }
56
+ }
57
+ }
Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
+ apply plugin : " maven-publish"
2
3
apply plugin : " io.freefair.android-javadoc-jar"
3
4
apply plugin : " io.freefair.android-sources-jar"
4
5
@@ -35,3 +36,13 @@ dependencies {
35
36
testImplementation " junit:junit:4.13.2"
36
37
testImplementation " org.mockito:mockito-core:3.9.0"
37
38
}
39
+
40
+ afterEvaluate {
41
+ publishing {
42
+ publications {
43
+ release(MavenPublication ) {
44
+ from components. release
45
+ }
46
+ }
47
+ }
48
+ }
You can’t perform that action at this time.
0 commit comments