File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ apply plugin : ' java'
2+ // apply plugin: 'maven'
3+
4+ group = ' com.yellow'
5+ version = ' 1.0'
6+
7+ description = """ """
8+
9+ sourceCompatibility = 1.8
10+ targetCompatibility = 1.8
11+ tasks. withType(JavaCompile ) {
12+ options. encoding = ' UTF-8'
13+ }
14+
15+
16+
17+ repositories {
18+
19+ // 本地仓库地址,可随意修改
20+ maven {
21+ name = " local"
22+ url = " D:/003-tool/004-maven/maven_repo"
23+ }
24+ }
25+ dependencies {
26+ // 注解所在的包
27+ compile group : ' com.yellow' , name : ' skmr-proceesor' , version :' 1.6'
28+
29+ // 注解处理器所在的包
30+ annotationProcessor ' com.yellow:skmr-proceesor:1.6'
31+ }
32+ compileJava. options. compilerArgs << " -processor" << " com.yellow.anno.process.BIdProcessor"
33+
34+ // 测试 javax.annotation.processing.Processor 文件存在与否 对 调用注解处理器的影响
35+ // compileJava.options.compilerArgs << "-processor" << "com.yellow.anno.process.IdProcessor2"
Original file line number Diff line number Diff line change 1+ rootProject. name = ' skmr-doc'
You can’t perform that action at this time.
0 commit comments