forked from redhat-developer/intellij-dependency-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (64 loc) · 2.21 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
plugins {
id "org.jetbrains.intellij" version "1.13.2"
}
repositories {
mavenCentral()
flatDir {
dirs buildDir
}
maven { url 'https://jitpack.io' }
maven {
url 'https://maven.pkg.github.com/RHEcosystemAppEng/crda-java-api'
credentials {
username = project.findProperty("gpr.username") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = '11'
targetCompatibility = '11'
intellij {
version = ideaVersion //for a full list of IntelliJ IDEA releases please see https://www.jetbrains.com/intellij-repository/releases
pluginName = 'org.jboss.tools.intellij.analytics'
plugins = ['com.redhat.devtools.intellij.telemetry:0.0.3.33']
updateSinceUntilBuild = false
}
runPluginVerifier {
ideVersions = [ideaVersion]
}
publishPlugin {
token = jetBrainsToken
channels = [jetBrainsChannel]
}
dependencies {
configurations.all {
// this means SNAPSHOT versions will be updated for every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
// WATCH OUT - lsp4intellij version 0.95.1 breaks diagnostics for opened files
implementation 'com.github.ballerina-platform:lsp4intellij:0.95.0'
constraints {
implementation('com.google.guava:guava:30.0-jre') {
because 'version 27.1-jre introduced by lsp4intellij:0.95.0 reports vulnerabilities'
}
implementation('com.google.code.gson:gson:2.8.9') {
because 'version 2.8.2 introduced by lsp4intellij:0.95.0 reports vulnerabilities'
}
}
implementation 'org.kohsuke:github-api:1.314'
implementation 'org.apache.commons:commons-compress:1.21'
implementation 'com.redhat.crda:crda-java-api:0.0.1-SNAPSHOT'
testImplementation('junit:junit:4.13.1')
}
runIde {
systemProperties['com.redhat.devtools.intellij.telemetry.mode'] = 'debug'
}
runIdeForUiTests {
systemProperties['com.redhat.devtools.intellij.telemetry.mode'] = 'debug'
}
group 'org.jboss.tools.intellij'
version projectVersion // Plugin version