forked from shuzijun/leetcode-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (58 loc) · 1.92 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
plugins {
id 'java-library'
id 'org.jetbrains.intellij' version '1.14.2'
id 'org.jetbrains.changelog' version "1.3.1"
id "de.undercouch.download" version "4.0.2"
}
apply plugin: 'org.jetbrains.changelog'
group project.pluginGroup
version (System.getenv('LD_VERSION')==null ? project.pluginVersion :System.getenv('LD_VERSION'))
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenLocal()
maven { url 'https://jitpack.io' }
mavenCentral()
}
dependencies {
api 'com.shuzijun:lc-sdk:0.0.3'
api 'com.alibaba:fastjson:1.2.47'
api 'org.jsoup:jsoup:1.11.3'
api('io.sentry:sentry:1.7.9') {
exclude module: 'slf4j-api'
}
api 'org.scilab.forge:jlatexmath:1.0.7'
api 'org.apache.commons:commons-lang3:3.9'
api 'com.vladsch.flexmark:flexmark:0.62.2'
api 'com.vladsch.flexmark:flexmark-ext-attributes:0.62.2'
api 'io.github.biezhi:TinyPinyin:2.0.3.RELEASE'
//api fileTree(dir: 'src/main/resources/lib', include: ['*.jar'])
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
pluginName = project.pluginName
version = project.platformVersion
type = project.platformType
downloadSources = true
updateSinceUntilBuild = false
buildSearchableOptions.enabled = false
ideaDependencyCachePath = "$gradle.gradleUserHomeDir/caches/modules-2/files-2.1/com.jetbrains.intellij.idea"
runIde {
jvmArgs = project.runIdeJvmArgs.split(',').toList()
}
patchPluginXml {
sinceBuild = project.pluginSinceBuild
untilBuild = project.pluginUntilBuild
pluginDescription = new File(project.pluginDescription).getText('UTF-8')
changeNotes.set(provider { changelog.get(project.version+".0").toHTML() })
}
publishPlugin {
dependsOn("patchChangelog")
token = System.getenv("PUBLISH_TOKEN")
}
}
changelog {
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}