【发布时间】:2020-09-27 20:43:26
【问题描述】:
我正在开发一个注释处理器,现在我正在执行下一步测试:
- 提交并推送更改到 github
- 使用 jitpack 构建和发布处理器
- 在 Idea 中刷新 gradle。 build.gradle 在我的测试项目中:
repositories {
maven { url 'https://jitpack.io' }
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
compileOnly 'com.github.hohserg1:MyAnnotationProcessor:main-SNAPSHOT'
}
- 尝试构建
太可怕了。如何将其简化为“按下运行按钮”?
【问题讨论】:
-
多模块项目。 1 个模块包含处理器。另一个取决于该处理器模块
标签: java annotations annotation-processing