File: build.gradle

package info (click to toggle)
syslog-ng 3.19.1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,176 kB
  • sloc: ansic: 114,472; makefile: 4,697; sh: 4,391; python: 4,282; java: 4,047; xml: 2,435; yacc: 1,108; lex: 426; perl: 193; awk: 184
file content (20 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
project.buildDir = syslogBuildDir + '/common/gradle'

jar.baseName = 'syslog-ng-common'

dependencies {
  compile name: 'syslog-ng-core'
  compile 'log4j:log4j:1.2.16'
  testCompile 'junit:junit:4.12'
  testCompile 'org.hamcrest:hamcrest-core:1.3'
}

ext.jarDestDir = project.hasProperty('jarDestDir') ? project.getProperty('jarDestDir') : '/'
task copyLog4j(type: Copy) {
     from findJar('log4j')
     into jarDestDir
}

def findJar(prefix) {
    configurations.runtime.filter { it.name.startsWith(prefix) }
}