-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathbuild.gradle
146 lines (137 loc) · 4.67 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.5'
id "org.sonarqube" version "3.5.0.2730"
id "jacoco"
}
group 'org.linyimin'
version '2.0.2'
sonarqube {
properties {
property "sonar.projectKey", "linyimin-bupt_mybatis-sql-viewer"
property "sonar.organization", "linyimin-bupt"
property "sonar.host.url", "https://sonarcloud.io"
}
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation 'com.alibaba:fastjson:2.0.25'
implementation 'mysql:mysql-connector-java:8.0.30'
implementation group: 'ognl', name: 'ognl', version: '3.0.4'
implementation group: 'com.alibaba', name: 'druid', version: '1.2.15'
implementation group: 'com.fifesoft', name: 'rsyntaxtextarea', version: '3.1.1'
implementation 'com.github.vertical-blank:sql-formatter:2.0.3'
implementation 'net.datafaker:datafaker:1.8.1'
implementation group: 'com.github.mifmif', name: 'generex', version: '1.0.1'
implementation group: 'com.github.jsqlparser', name: 'jsqlparser', version: '4.5'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.3.0'
implementation group: 'jfree', name: 'jfreechart', version: '1.0.13'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version '2020.1'
plugins = ['com.intellij.java']
updateSinceUntilBuild false
}
patchPluginXml {
changeNotes = """
<h4>2.0.2</h4>
<ul>
<li>Fixing jump link error</li>
</ul>
<ul>
<li>修复跳转链接错误问题</li>
</ul>
<h4>2.0.1</h4>
<ul>
<li>Support for configurable file navigation</li>
</ul>
<ul>
<li>支持文件跳转可配置化</li>
</ul>
<h4>2.0.0</h4>
<ul>
<li>Supports mybatis mode and non-mybatis mode</li>
<li>SQL specification check</li>
<li>SQL index check</li>
<li>SQL stress</li>
<li>Table-building specification check</li>
<li>Table index specification check</li>
<li>Table data mock</li>
<li>Supports file and project dimensions MyBatis SQL scanning</li>
</ul>
<ul>
<li>支持mybatis模式和非mybatis模式</li>
<li>SQL规约检查</li>
<li>SQL索引检查</li>
<li>SQL压测</li>
<li>建表规约检查</li>
<li>索引规约检查</li>
<li>批量表数据mock</li>
<li>支持文件及项目维度mybatis sql扫描</li>
</ul>
<h4>1.0.6</h4>
<ul>
<li>Support @Insert, @Delete, @Update and @Select annotations</li>
<li>Beautify the style of SQL and JSON</li>
<li>Fixed the bug where nested classes were parsed into JSON</li>
</ul>
<ul>
<li>支持@Insert, @Delete, @Update, @Select注解生成SQL语句</li>
<li>美化SQL和JSON的样式</li>
<li>解决嵌套类解析成JSON时抛异常的bug</li>
</ul>
<h4>1.0.4</h4>
<ul>
<li>SQL statement syntax highlighting and resolving some bugs</li>
</ul>
<ul>
<li>SQL语句语法高亮和解决一些小bug</li>
</ul>
<h4>1.0.3</h4>
<ul>
<li>Refactoring, performance optimization, to avoid CPU occupancy</li>
</ul>
<ul>
<li>重构,性能优化避免CPU占满</li>
</ul>
<h4>1.0.2</h4>
<ul>
<li>Suppot without mybatis configuration file</li>
</ul>
<ul>
<li>支持没有mybatis配置文件</li>
</ul>
<h4>1.0.1</h4>
<ul>
<li>Compatible with other plugins</li>
</ul>
<ul>
<li>兼容其他插件</li>
</ul>
<h4>1.0.0</h4>
<ul>
<li>navigate from the code to mapper and from the mapper back to code</li>
<li>The xml statement/method in the mapper file convert to sql statement, which supports parameters mock, data source configuration, and sql execution</li>
</ul>
<ul>
<li>快速从代码跳转到mapper及从mapper返回代码</li>
<li>mapper文件中的xml语句/方法转换成sql语句,支持参数mock、数据源配置、sql执行</li>
</ul>
"""
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}