-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbuild.gradle
74 lines (59 loc) · 1.6 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
plugins {
id 'idea'
id 'java'
id 'org.jetbrains.intellij' version '0.4.10'
id 'net.researchgate.release' version '2.8.0'
}
apply plugin: 'idea'
def configDir = new File(buildscript.sourceFile.parentFile, 'config')
ext.checkstyleConfigDir = "$configDir/checkstyle"
allprojects {
buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
}
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
}
apply plugin: 'java'
apply plugin: 'checkstyle'
sourceCompatibility = 1.8
targetCompatibility = 1.8
intellij {
version intellijSdkVersion
instrumentCode = true
plugins 'java'
}
checkstyle {
toolVersion = "7.0"
configFile = new File(checkstyleConfigDir, "checkstyle.xml")
configProperties.checkstyleConfigDir = checkstyleConfigDir
}
}
test {
systemProperty 'graphDatabaseSupportDevelopment', 'true'
}
release {
failOnCommitNeeded = true
failOnPublishNeeded = true
failOnSnapshotDependencies = true
failOnUnversionedFiles = true
failOnUpdateNeeded = true
revertOnFail = true
buildTasks = ['build']
tagTemplate = '${version}'
preCommitText = '[release]'
preTagCommitMessage = ' [skip ci] Pre tag commit: '
tagCommitMessage = ' Creating tag: '
newVersionCommitMessage = ' [skip ci] New version commit: '
git {
requireBranch = 'master'
}
}
//afterReleaseBuild.dependsOn publishPlugin