Skip to content

Commit 23eeb67

Browse files
author
yangchengdong
committed
release v1.4.0
1 parent 9b4eaa9 commit 23eeb67

File tree

4 files changed

+4
-52
lines changed

4 files changed

+4
-52
lines changed

README.md

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MicroModule
2-
Rebuild multiple complete module structures within the module. Each complete module structure we called it MicroModule, Each MicroModule has its own `build.gradle` file where you can add configuration options to publish MicroModule(aar) to Maven and declare MicroModule dependencies. In addition, you can decide which MicroModules participate in the compilation of the module.
2+
Rebuild multiple complete module structures within the module. Each complete module structure we called it MicroModule, Each MicroModule has its own `build.gradle` file where you can declare MicroModule dependencies. In addition, you can decide which MicroModules participate in the compilation of the module.
33

44
<img src='https://github.com/EastWoodYang/MicroModule/blob/master/picture/1.png'/>
55

@@ -9,7 +9,7 @@ Rebuild multiple complete module structures within the module. Each complete mod
99
buildscript {
1010
dependencies {
1111
...
12-
classpath 'com.eastwood.tools.plugins:micro-module:1.3.2'
12+
classpath 'com.eastwood.tools.plugins:micro-module:1.4.0'
1313
}
1414
}
1515

@@ -78,54 +78,6 @@ You can also declare dependencies on the other third party libraries in `depende
7878
implementation microModule(':p_common')
7979
}
8080

81-
### Publish MicroModule(AAR) to Maven repository:
82-
The MicroModule plugin adds support for compiling single MicroModule into an Android Archive (AAR) file, and publishing AAR file to Maven repository.
83-
84-
The MicroModule plugin provides a factory method for creating a maven artifact. After you add configuration option of creating a maven artifact and run gradle sync, the MicroModule plugin will create a relatived upload task which publishing AAR file to Maven repository.
85-
86-
*Example 3. Creating a maven artifact.*
87-
88-
microModule {
89-
mavenArtifact {
90-
groupId 'com.eastwood.demo'
91-
artifactId 'library-base'
92-
version '1.0.0-SNAPSHOT'
93-
94-
repository {
95-
url "***"
96-
authentication(userName: '***', password: '***')
97-
}
98-
}
99-
}
100-
101-
<img src='https://github.com/EastWoodYang/MicroModule/blob/master/picture/2.png'/>
102-
103-
104-
After publishing MicroModule AAR file to Maven repository, you can use it as a dependency instead of the local source code. All you have to do is add the attribute `useMavenArtifact` and set it to true.
105-
106-
*Example 4. the complete example of the MicroModule build.gradle file.*
107-
108-
microModule {
109-
useMavenArtifact true
110-
mavenArtifact {
111-
groupId 'com.eastwood.demo'
112-
artifactId 'library-base'
113-
version '1.0.0-SNAPSHOT'
114-
115-
repository {
116-
url "***"
117-
authentication(userName: '***', password: '***')
118-
}
119-
}
120-
}
121-
122-
dependencies {
123-
implementation fileTree(dir: 'main/libs', include: ['*.jar'])
124-
implementation 'com.android.support:appcompat-v7:27.1.1'
125-
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
126-
127-
implementation microModule(':p_common')
128-
}
12981

13082
## MicroModule Android Studio Plugin
13183
Provides an action which allow you quickly create MicroModule or convert module to MicroModule.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:3.3.0'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12-
classpath 'com.eastwood.tools.plugins:micro-module:1.3.0'
12+
classpath 'com.eastwood.tools.plugins:micro-module:1.4.0'
1313
}
1414
}
1515

micro-module/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply plugin: 'maven'
1919

2020
def groupId = 'com.eastwood.tools.plugins'
2121
def artifactId = 'micro-module'
22-
def version = '1.3.2'
22+
def version = '1.4.0'
2323

2424
def localReleaseDest = "${buildDir}/release/${version}"
2525

picture/2.png

-7.27 KB
Binary file not shown.

0 commit comments

Comments
 (0)