-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
54 lines (46 loc) · 1.07 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
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'codenarc'
id 'de.aaschmid.cpd' version '3.2'
}
group 'com.smlnskgmail.jaman.flutterrb'
version '1.0.1'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:3.0.5'
}
gradlePlugin {
plugins {
infoPlugin {
id = 'com.smlnskgmail.jaman.flutterrb'
implementationClass = 'com.smlnskgmail.jaman.flutterrb.InfoPlugin'
}
}
}
codenarc {
toolVersion = '1.4'
}
codenarcMain {
def codenarcRulesPath = "$rootDir/codenarc-rules.groovy"
def codenarcRules = new File(codenarcRulesPath)
if (!codenarcRules.exists()) {
new URL(
'https://raw.githubusercontent.com/fartem/repository-rules/master/rules/groovy/codenarc/codenarc.groovy'
).withInputStream {
i -> codenarcRules.withOutputStream {
it << i
}
}
}
configFile = codenarcRules
}
cpd {
language = 'groovy'
toolVersion = '6.20.0'
}
cpdCheck {
source = files('src/main/groovy')
}