-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
120 lines (104 loc) · 2.39 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
buildscript {
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath 'gradle.plugin.org.jetbrains:gradle-intellij-plugin:0.0.43'
}
}
plugins {
id "org.jetbrains.intellij" version "0.0.43"
}
group 'com.roboplugins'
apply plugin: 'idea'
apply plugin: "org.jetbrains.intellij"
apply plugin: 'java'
sourceSets {
main {
java {
srcDirs 'src'
}
resources {
srcDirs 'resources'
}
}
test {
java {
srcDir 'test'
}
resources {
srcDirs 'test/resources'
}
}
}
dependencies {
runtime fileTree(dir: 'libs', include: '*.jar')
testCompile group: 'junit', name: 'junit', version: '4.+'
}
intellij {
pluginName 'Marks'
plugins 'Plugin Development'
version ideaVersion
downloadSources Boolean.valueOf(downloadIdeaSources)
// FIXME: hack to support both IDEA 15 and IDEA 16.
// See https://github.com/intellij-rust/intellij-rust/issues/243
updateSinceUntilBuild = true
publish {
username publishUsername
password publishPassword
pluginId '8232'
channel publishChannel
}
sandboxDirectory project.rootDir.canonicalPath + "/.sandbox"
}
//task copyTask(type: Copy) {
// from('build/distributions') {
// include '*.zip'
// rename 'PainhPoints()', ''
// }
// into 'build/'
// includeEmptyDirs = false
//}
//
//
//assemble.dependsOn copyTask
//task jarSources(type:Jar) {
// from sourceSets.main.allSource
// classifier = 'sources'
//}
//assemble.dependsOn jarSources
//idea {
// project {
// jdkName = javaVersion
// languageLevel = javaVersion
// }
//
// module {
// generatedSourceDirs += file('gen')
// }
//}
/*
* Gets the version name from the latest Git tag
*/
def getVersionName() {
def stdout = new ByteArrayOutputStream()
try {
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
} catch (ignored) {
return '0.0.0'
}
def version = stdout.toString().trim()
if (version.startsWith('v')) {
version = version.substring(1)
}
return version
}
task wrapper(type: Wrapper) {
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}