-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (40 loc) · 1.22 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
plugins {
id "it.tellnet.sass" version "1.2"
}
dependencies {
compile project(':common-util')
compile project(':common-verifier')
compile project(':signer-protocol')
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
compile 'org.owasp.encoder:encoder:1.2.2'
compile 'org.kohsuke:libpam4j:1.11'
compile 'net.java.dev.jna:jna:4.5.2'
testCompile project(':common-test')
testCompile project(':common-util').sourceSets.test.output
}
task copyDeps(type: Copy) {
into "$buildDir/libs"
from configurations.compile
}
task checkRubySource(type: Exec) {
inputs.files fileTree('app') + fileTree('lib')
outputs.files file('build/rubocop-result.json')
commandLine = getRubySourceCheckCommand("$projectDir")
}
/* use task sassCompile to compile from scss to css */
sass {
sassDir = "public/stylesheets/scss/"
cssDir = "public/stylesheets"
}
/* Some tests depend on English strings */
test {
environment "LANGUAGE", "en"
}
check.dependsOn checkRubySource
build.dependsOn copyDeps
sonarqube {
properties {
properties["sonar.sources"] += [file('app'), file('lib'), file('public')]
property "sonar.ruby.rubocop.reportPath", file('build/rubocop-result.json')
}
}