-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
74 lines (59 loc) · 1.65 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java'
id 'idea'
id 'org.jetbrains.intellij' version '0.6.5'
id "org.jetbrains.kotlin.jvm" version "1.4.21"
}
def circleCIBuildNum = System.getenv('CIRCLE_BUILD_NUM')
def versionWithBuildNum = pluginVersion + "." + circleCIBuildNum
def channel = System.getenv('HUB_CHANNEL') ? System.getenv('HUB_CHANNEL') : ''
group pluginGroup
version = circleCIBuildNum ? versionWithBuildNum : pluginVersion
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
test {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
exceptionFormat = 'full'
showStandardStreams = true
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: '2.10.1'
}
intellij {
pluginName = "intellij-circleci"
version ideaVersion
println "Building for IntelliJ version: ${version}"
updateSinceUntilBuild = false
}
patchPluginXml {
changeNotes """
Fixes:
<ul>
<li>Settings are now per project</li>
<li>Action messages</li>
<li>Build status is automatically updated on check</li>
</ul>"""
sinceBuild 203.5981 // default
}
buildPlugin {
archiveBaseName.set("intellij-circleci")
}
publishPlugin {
token System.getenv('HUB_PUBLISH_TOKEN')
channels channel
}