Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module命名特殊字符 #2

Open
nianzixin opened this issue Jul 21, 2021 · 13 comments
Open

module命名特殊字符 #2

nianzixin opened this issue Jul 21, 2021 · 13 comments

Comments

@nianzixin
Copy link

显而易见是module名称,这里一定要和你的真实module名称一致,不然插件会找不到对应的module,如果你的module名携带特殊字符,你需要处理一下,因为groovy dsl对特殊字符支持并不友好,例如你的module名是module-library-A,你需要将特殊字符去掉,改成modulelibraryA

1、这个特殊字符能支持下么?好多已有的工程的命名都带有_或者-,我们的工程有100多个,如果都改工程名字去掉特殊字符不太现实
2、1.0.1版本下载不下来

@theCakeOfCupid
Copy link
Owner

1:这里的去掉特殊字符是指在配置文件里面规范化,把特殊字符去掉, 不是改module名
2:我这里能下载,你那边报什么错,截个图给我看下,还有你的插件配置方式

@nianzixin
Copy link
Author

image

@nianzixin nianzixin reopened this Jul 21, 2021
@nianzixin
Copy link
Author

还有一个问题:libraryA里我有1.0版本、2.0版本,那我构建的时候用哪个版本呢?是根据version的配置项决定用哪个版本的aar么?

@theCakeOfCupid
Copy link
Owner

theCakeOfCupid commented Jul 21, 2021 via email

@theCakeOfCupid
Copy link
Owner

特殊字符模块配置示例:
//模块名:library-c
libraryc(
useByAar: false,
groupId: 'com.james',
artifactId: 'library-c',
version: '1.2',
mavenUrl:"$rootDir/moduleRepoB"
)

@theCakeOfCupid
Copy link
Owner

1.0.2修复了多仓库使用问题

@nianzixin
Copy link
Author

image

新建的module是在文件夹business或者任何一个文件夹下,这种情况下aar上传不了

@theCakeOfCupid
Copy link
Owner

没有include的module无法构建

@nianzixin
Copy link
Author

image
这有include的

@theCakeOfCupid
Copy link
Owner

我晚点看看

@theCakeOfCupid
Copy link
Owner

我这边测试没问题,能否提供更多信息,比如配置文件、相关module发布的日志等

@nianzixin
Copy link
Author

加个微信?yizunda@gmail.com 这个邮箱你还在用么?用的话,我把微信号发给你邮箱?

@theCakeOfCupid
Copy link
Owner

可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants