-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (57 loc) · 2.07 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
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.5'
id "org.sonarqube" version "2.8"
id "org.jetbrains.kotlin.jvm" version "1.4.10"
}
apply plugin: "kotlin"
apply plugin: "org.jetbrains.intellij"
group 'nl.vu.cs.s2group.nappa.plugin'
version '1.1.5'
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "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'
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10")
// implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.21")
}
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', 'org.jetbrains.kotlin']
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
}
}