Skip to content

Commit a2d38da

Browse files
committed
chore: scene-fragment module add maven-publish ability
1 parent c94ff39 commit a2d38da

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

library/scene_fragment/build.gradle

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
23
apply plugin: 'kotlin-android'
34

45
android {
@@ -51,7 +52,7 @@ tasks.withType(Test) {
5152
task javadoc(type: Javadoc) {
5253
source = android.sourceSets.main.java.srcDirs
5354
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
54-
destinationDir = file("../javadoc/scene_ktx/")
55+
destinationDir = file("../javadoc/scene_fragment/")
5556
failOnError false
5657
title = null
5758

@@ -62,3 +63,17 @@ task javadoc(type: Javadoc) {
6263
encoding "UTF-8"
6364
}
6465
}
66+
67+
afterEvaluate {
68+
publishing {
69+
publications {
70+
// Creates a Maven publication called "release".
71+
release(MavenPublication) {
72+
from components.release
73+
groupId = 'com.github.bytedance.scene'
74+
artifactId = 'scene_fragment'
75+
version = '1.3.0'
76+
}
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)