forked from YiiGuxing/TranslationPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
75 lines (63 loc) · 1.81 KB
/
build.gradle
File metadata and controls
75 lines (63 loc) · 1.81 KB
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
import org.apache.tools.ant.filters.EscapeUnicode
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
plugins {
// https://github.com/JetBrains/gradle-intellij-plugin
id "org.jetbrains.intellij" version "0.4.16"
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
}
repositories {
jcenter()
mavenCentral()
}
group = 'cn.yiiguxing.plugin.translate'
version = "${version}${buildNumber ? '-' + buildNumber : ''}"
intellij {
version = ideaVersion
pluginName = 'TranslationPlugin'
downloadSources = Boolean.valueOf(sources)
sandboxDirectory 'sandbox'
plugins "org.jetbrains.kotlin:1.2.40-release-IJ2017.1-1", "Pythonid:2017.1.171.3780.116", "Dart:171.4006", "org.jetbrains.plugins.go:171.4694.35"
}
patchPluginXml {
sinceBuild customSinceBuild
untilBuild customUntilBuild
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'org.apache.commons:commons-dbcp2:2.6.0'
implementation 'commons-dbutils:commons-dbutils:1.7'
implementation('com.googlecode.soundlibs:mp3spi:1.9.5.4') {
exclude module: 'junit'
}
}
sourceCompatibility = javaVersion
targetCompatibility = javaTargetVersion
compileKotlin {
kotlinOptions {
languageVersion = kotlinLanguageVersion
apiVersion = kotlinTargetVersion
jvmTarget = javaTargetVersion
}
}
compileTestKotlin {
kotlinOptions {
languageVersion = kotlinLanguageVersion
apiVersion = kotlinTargetVersion
jvmTarget = javaTargetVersion
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(ProcessResources) {
filesMatching('**/*.properties') {
filter EscapeUnicode
}
}