-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
82 lines (63 loc) · 1.99 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
// Copied and adapted from plugin "Graph Database Support"
// by Neueda Technologies, Ltd.
// Modified by Alberto Venturini, 2022
plugins {
id 'idea'
// Java support
id 'java'
// Gradle IntelliJ Plugin
id 'org.jetbrains.intellij' version "$versionGradleIntelliJ"
// https://github.com/researchgate/gradle-release
id 'net.researchgate.release' version '2.8.0'
// JetBrain's Gradle Changelog Plugin
// https://github.com/JetBrains/gradle-changelog-plugin
id 'org.jetbrains.changelog' version "$versionGradleChangelog"
id 'org.jetbrains.grammarkit' version "2022.3.1"
}
apply plugin: 'idea'
apply plugin: 'org.jetbrains.changelog'
def configDir = new File(buildscript.sourceFile.parentFile, 'config')
ext.checkstyleConfigDir = "$configDir/checkstyle"
allprojects {
repositories {
mavenCentral()
mavenLocal()
}
apply plugin: 'java'
// apply plugin: 'checkstyle'
apply plugin: 'org.jetbrains.grammarkit'
sourceCompatibility = 17
targetCompatibility = 17
// checkstyle {
// toolVersion = "7.0"
// configFile = new File(checkstyleConfigDir, "checkstyle.xml")
// configProperties.checkstyleConfigDir = checkstyleConfigDir
// ignoreFailures = true
// }
intellij {
version = intellijSdkVersion
plugins = ['java']
}
}
test {
systemProperty 'graphDatabaseSupportDevelopment', 'true'
}
// See https://github.com/researchgate/gradle-release
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