forked from Link-Kou/intellij-mybaitslog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (66 loc) · 2.22 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
buildscript {
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url "https://www.jetbrains.com/intellij-repository/releases/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.8.0"
}
}
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.8.0'
// Gradle Changelog Plugin
id 'org.jetbrains.changelog' version "1.3.1"
// Gradle Qodana Plugin
id 'org.jetbrains.qodana' version "0.1.13"
}
//2.1 插件配置
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'org.jetbrains.changelog'
apply plugin: 'org.jetbrains.qodana'
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "com.rapid.develop.core.server.ApplicationServer"
group 'com.linkkou'
version '3.0.2'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url "https://www.jetbrains.com/intellij-repository/releases" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.13.1'
/*compile fileTree(dir: 'libs', include: [ '*'])*/
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.1'
}
/*https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html#intellij-platform-based-products-of-recent-ide-versions*/
intellij {
pluginName = 'MybatisLog'
// 开发环境运行时使用的版本
//version = '2021.1'
// 沙箱目录位置,用于保存IDEA的设置,默认在build文件下面,防止clean,放在根目录下。
sandboxDir = "${rootProject.rootDir}/idea-sandbox"
type = 'IU'
// 依赖的插件
//plugins = ['DatabaseTools', 'Velocity']
//Disables updating since-build attribute in plugin.xml
updateSinceUntilBuild = false
downloadSources = false
localPath = '/Applications/IntelliJ IDEA.app'
}
processResources {
from('src/main/java') {
include '**/*.png'
}
}
patchPluginXml {
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}