-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
62 lines (52 loc) · 1.35 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
def properties(String key) {
return project.findProperty(key).toString()
}
plugins {
id 'org.jetbrains.intellij' version '1.13.3'
id "org.jetbrains.kotlin.jvm" version "1.8.10"
id 'org.kordamp.gradle.markdown' version '2.2.0'
id "org.jlleitschuh.gradle.ktlint" version "11.3.2"
}
repositories {
mavenCentral()
}
group 'io.unthrottled'
version '1.11.1'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'commons-io:commons-io:2.11.0'
implementation 'io.sentry:sentry:6.18.1'
implementation "com.google.code.gson:gson:2.10.1"
}
configurations {
implementation.exclude group: 'org.slf4j'
}
intellij {
version.set('2022.3')
type.set('IU')
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
markdownToHtml {
sourceDir file("$projectDir/docs")
outputDir file("$projectDir/build/html")
}
tasks.runIde {
idePath = properties("idePath")
if (!idePath.isEmpty()) {
ideDir.set(file(idePath))
}
}
tasks.patchPluginXml {
def releaseNotes = "$projectDir/build/html/RELEASE-NOTES.html"
if (file(releaseNotes).exists()) {
changeNotes.set(file(releaseNotes).text)
}
sinceBuild.set(System.getenv("pluginSinceBuild") ?: sinceBuildP)
untilBuild.set(System.getenv("pluginUntilBuild") ?: untilBuildP)
}
tasks.patchPluginXml.dependsOn("markdownToHtml")