-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.gradle
91 lines (72 loc) · 2.1 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import org.jetbrains.intellij.tasks.RunIdeTask
buildscript {
ext.kotlin_version = '1.3.10'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.10"
id "org.jetbrains.intellij" version "0.3.5"
}
apply plugin: 'java'
apply plugin: "kotlin"
//noinspection GroovyAssignabilityCheck,GrUnresolvedAccess
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
//noinspection GrUnresolvedAccess
kotlinOptions {
jvmTarget = "1.8"
}
}
// On travis, we don't want to deploy to Jetbrains that requires credentials
if (project.file('gradle.properties').exists()) {
apply from: "gradle.properties"
}
// run this task for profiling the running sandbox
task runIdeProfiler(type: RunIdeTask) {
jvmArgs = ["-agentpath:/home/patrick/build/share/yjp-2017.02/bin/linux-x86-64/libyjpagent.so=delay=2000"]
}
sourceSets {
//noinspection GroovyAssignabilityCheck
main {
java.srcDirs = ['src']
resources.srcDirs = ['resources']
}
test {
java.srcDirs = ['tests']
resources.srcDirs = ['testData']
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile fileTree(dir: 'lib', include: ['*.jar'])
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2'
}
// Information about the plugin
// Plugin version number
version '3.0beta10'
intellij {
version = '2018.3'
downloadSources = true
pluginName = 'Mathematica-IntelliJ-Plugin'
sameSinceUntilBuild = false
updateSinceUntilBuild = true
}
// Simple function to load change-notes.html and description.html into valid text for plugin.xml
def htmlFixer = {htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '')}
patchPluginXml {
changeNotes = htmlFixer('resources/META-INF/change-notes.html')
pluginDescription = htmlFixer('resources/META-INF/description.html')
sinceBuild = '181'
}
publishPlugin {
channels 'beta'
}