File tree 5 files changed +8
-8
lines changed
src/main/groovy/com/eastwood/tools/plugins/mis
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ MIS主要解决的问题是如何在一个模块内维护其对外暴露的接
14
14
buildscript {
15
15
dependencies {
16
16
...
17
- classpath 'com.eastwood.tools.plugins:mis:2.0.2 '
17
+ classpath 'com.eastwood.tools.plugins:mis:2.0.3 '
18
18
}
19
19
}
20
20
```
@@ -100,11 +100,11 @@ mis {
100
100
101
101
* 发布用到的插件是` maven-publish ` ,其中` repositories ` 相关设置请查阅[ # Maven Publish Plugin] ( https://docs.gradle.org/current/userguide/publishing_maven.html#publishing_maven:repositories )
102
102
103
- ** Gradle Sync** 后,打开Gradle Tasks View,选择** publishMis[ ...] PublicationToMavenRepository** 执行发布任务。
103
+ ** Gradle Sync** 后,打开Gradle Tasks View,选择** publishMis...PublicationToMavenRepository** 执行发布任务。
104
104
105
105
<img src =' https://github.com/EastWoodYang/Mis/blob/master/picture/3.png ' />
106
106
107
- 其中publishMis[ ...] PublicationToMavenLocal 是发布至本地maven。如果使用本地maven,请将` mavenLocal() ` 添加至根项目的build.gradle中,比如:
107
+ 其中publishMis...PublicationToMavenLocal 是发布至本地maven。如果使用本地maven,请将` mavenLocal() ` 添加至根项目的build.gradle中,比如:
108
108
```
109
109
allprojects {
110
110
repositories {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ buildscript {
17
17
classpath ' com.eastwood.tools.plugins:auto-inject:1.0.3'
18
18
19
19
// mis
20
- classpath ' com.eastwood.tools.plugins:mis:2.0.2 '
20
+ classpath ' com.eastwood.tools.plugins:mis:2.0.3 '
21
21
22
22
// mis for dev
23
23
// classpath 'com.eastwood.tools.plugins:mis-plugin'
Original file line number Diff line number Diff line change 3
3
main {
4
4
groupId ' com.eastwood.demo'
5
5
artifactId ' library-sdk'
6
- // version '1.0.0' // 初次配置时不设置,发布至maven时设置
6
+ version ' 1.0.0' // 初次配置时不设置,发布至maven时设置
7
7
8
8
dependencies {
9
9
// 只支持 compileOnly 和 implementation
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ apply plugin: 'maven'
18
18
19
19
def groupId = ' com.eastwood.tools.plugins'
20
20
def artifactId = ' mis'
21
- def version = ' 2.0.2 '
21
+ def version = ' 2.0.3 '
22
22
23
23
def localReleaseDest = " ${ buildDir} /release/${ version} "
24
24
Original file line number Diff line number Diff line change @@ -373,15 +373,15 @@ class MisPlugin implements Plugin<Project> {
373
373
}
374
374
375
375
void createPublishTask (Publication publication ) {
376
- def taskName = ' compileMis[ ' + publication. artifactId + ' ] Source'
376
+ def taskName = ' compileMis' + publication. artifactId. capitalize() + ' Source'
377
377
def compileTask = project. getTasks(). findByName(taskName)
378
378
if (compileTask == null ) {
379
379
compileTask = project. getTasks(). create(taskName, CompileMisTask . class)
380
380
compileTask. publication = publication
381
381
compileTask. dependsOn ' clean'
382
382
}
383
383
384
- def publicationName = ' Mis[ ' + publication. artifactId + ' ] '
384
+ def publicationName = ' Mis' + publication. artifactId. capitalize()
385
385
String publishTaskNamePrefix = " publish${ publicationName} PublicationTo"
386
386
project. tasks. whenTaskAdded {
387
387
if (it. name. startsWith(publishTaskNamePrefix)) {
You can’t perform that action at this time.
0 commit comments