Skip to content

Commit 0ceffa2

Browse files
author
huangwei
committed
提交 gradle 配置脚本
1 parent dadd58c commit 0ceffa2

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

yellow-doc/build.gradle

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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"

yellow-doc/settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'skmr-doc'

0 commit comments

Comments
 (0)