forked from S2-group/NAPPA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (46 loc) · 1.68 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
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.5'
id "org.sonarqube" version "2.8"
}
group 'nl.vu.cs.s2group.nappa.plugin'
version '1.1.5'
sourceCompatibility = 1.8
// When this option is enabled and `ideDirectory` is set to Android Studio,
// the build fails and generates the exception https://youtrack.jetbrains.com/issue/KT-32401
// As a result of disabling building searchable options,
// the configurables that your plugin provides won't be searchable in the Settings dialog.
buildSearchableOptions.enabled = false
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
intellij {
// Refer to the docs for more information
// https://github.com/JetBrains/gradle-intellij-plugin
// https://www.jetbrains.org/intellij/sdk/docs/products/android_studio.html
// Needs to be defined in the Gradle installation directory
version project.hasProperty('nappaAndroidStudioVersion') ? nappaAndroidStudioVersion : 'LATEST-EAP-SNAPSHOT'
plugins = ['com.intellij.java']
updateSinceUntilBuild false
}
if (project.hasProperty('nappaAndroidStudioHome')) {
runIde {
// Needs to be defined in the Gradle installation directory
ideDirectory nappaAndroidStudioHome
}
}
patchPluginXml {
changeNotes
}
sonarqube {
properties {
property "sonar.projectKey", nappaSonarOrganization + "_nappa-plugin-android-studio"
property "sonar.projectName", "NAPPA - Plugin for Android Studio"
property "sonar.organization", nappaSonarOrganization
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.login", nappaSonarLogin
}
}