-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
43 lines (35 loc) · 914 Bytes
/
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
plugins {
id 'java-library'
id 'checkstyle'
id 'com.autonomousapps.dependency-analysis' version '2.2.0'
}
def solanaVersion = project.property('SOLANA_VERSION')
group = 'com.lmax'
version = '1.1.0'
dependencyAnalysis {
issues {
all {
onAny {
severity('fail')
}
}
}
}
allprojects {
ext {
solanaVersion = project.property('SOLANA_VERSION')
}
}
subprojects {
checkstyle {
toolVersion = '10.4'
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
check.dependsOn buildHealth
group = rootProject.group
version = rootProject.version
}
task setUpGitHooks(type: Exec, description: 'Add a pre-commit git hook that runs gradle check & test tasks') {
def hooksFolder = file('.githooks').getAbsolutePath()
commandLine 'git', 'config', 'core.hooksPath', hooksFolder
}