Skip to content

Commit

Permalink
chore: add publishToMavenLocal to gradle script
Browse files Browse the repository at this point in the history
  • Loading branch information
qii committed Apr 13, 2022
1 parent 9c7ee9a commit f885c68
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ KOTLIN_LIB = org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50
KOTLIN_ANDROID_EXTENSIONS = org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.3.50
KOTLIN_PLUGIN = org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

ANDROID_GRADLE_PLUGIN = com.android.tools.build:gradle:3.4.0
ANDROID_GRADLE_PLUGIN = com.android.tools.build:gradle:3.6.0

APPCOMPAT_LIB = androidx.appcompat:appcompat:1.0.0
SUPPORTV4_LIB = androidx.core:core:1.0.0
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Sep 17 18:31:25 CST 2019
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
15 changes: 15 additions & 0 deletions library/scene/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -54,4 +55,18 @@ task javadoc(type: Javadoc) {
locale "en_US"
encoding "UTF-8"
}
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.bytedance.scene'
artifactId = 'scene'
version = '1.3.0'
}
}
}
}
15 changes: 15 additions & 0 deletions library/scene_dialog/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -55,4 +56,18 @@ task javadoc(type: Javadoc) {
locale "en_US"
encoding "UTF-8"
}
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.bytedance.scene'
artifactId = 'scene_dialog'
version = '1.3.0'
}
}
}
}
16 changes: 16 additions & 0 deletions library/scene_ktx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -59,3 +60,18 @@ task javadoc(type: Javadoc) {
encoding "UTF-8"
}
}


afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.bytedance.scene'
artifactId = 'scene_ktx'
version = '1.3.0'
}
}
}
}
15 changes: 15 additions & 0 deletions library/scene_navigation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -55,4 +56,18 @@ task javadoc(type: Javadoc) {
locale "en_US"
encoding "UTF-8"
}
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.bytedance.scene'
artifactId = 'scene_navigation'
version = '1.3.0'
}
}
}
}
15 changes: 15 additions & 0 deletions library/scene_shared_element_animation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -31,4 +32,18 @@ task javadoc(type: Javadoc) {
locale "en_US"
encoding "UTF-8"
}
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.bytedance.scene'
artifactId = 'scene_shared_element_animation'
version = '1.3.0'
}
}
}
}
15 changes: 15 additions & 0 deletions library/scene_ui/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -55,4 +56,18 @@ task javadoc(type: Javadoc) {
locale "en_US"
encoding "UTF-8"
}
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.bytedance.scene'
artifactId = 'scene_ui'
version = '1.3.0'
}
}
}
}

0 comments on commit f885c68

Please sign in to comment.