-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (51 loc) · 1.5 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
// 声明项目所需的 Gradle 插件
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.16.1'
}
// 项目信息
group 'com.pan.io'
version '1.0.0'
// 仓库
repositories {
maven { url 'https://maven.aliyun.com/repository/central/' }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/jcenter/' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
flatDir {
dirs 'libs'
}
}
// 项目依赖
dependencies {
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'com.github.vlsi.mxgraph:jgraphx:4.2.3'
}
// intellij 的一些配置
intellij {
// 调试使用的版本
version = '2023.1.5'
type = 'IC' // IC 社区版 IU 企业版
// intellij 插件依赖
plugins = ['com.intellij.java', 'com.intellij.java-i18n']
// 不更新untilBuild
updateSinceUntilBuild = false
downloadSources = true
}
// 编译参数
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
// 编译参数
options.compilerArgs += ['-Xlint:unchecked', '-Xlint:deprecation', '-parameters']
// 编译线程是否新开一个线程
options.fork = false
// 增量编译
options.incremental = true
}
// 插件适用版本
patchPluginXml {
//注意这个版本号不能高于上面intellij的version,否则runIde会报错
sinceBuild = '231'
untilBuild = '241.*'
}