Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchengdong committed Nov 27, 2018
1 parent 052a407 commit 4bab35f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The MicroModule plugin defines the following methods in `microModule {}`:
Use `export` to decide which MicroModules participate in the compilation of the module. if not declared, all MicroModules which decleard by `include`, will participate in the compilation of the module.


Example 1. build.gradle file of library module in the dome.
*Example 1. build.gradle file of library module in the dome.*

microModule {
codeCheckEnabled true
Expand All @@ -68,7 +68,7 @@ The method **`microModule`** has a only `string` parameter, the name of the Micr

You can also declare dependencies on the other third party libraries in `dependencies {}`.

Example 2. build.gradle file of main MicroModule in the demo.
*Example 2. build.gradle file of main MicroModule in the demo.*

dependencies {
implementation fileTree(dir: 'main/libs', include: ['*.jar'])
Expand All @@ -83,7 +83,7 @@ The MicroModule plugin adds support for compiling single MicroModule into an And

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.

Example 3. Creating a maven artifact.
*Example 3. Creating a maven artifact.*

microModule {
mavenArtifact {
Expand All @@ -103,7 +103,7 @@ Example 3. Creating a maven artifact.

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.

Example 4. the complete example of the MicroModule build.gradle file.
*Example 4. the complete example of the MicroModule build.gradle file.*

microModule {
useMavenArtifact true
Expand Down

0 comments on commit 4bab35f

Please sign in to comment.