-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
36 lines (30 loc) · 999 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
apply plugin: 'java'
repositories {
mavenCentral()
jcenter()
maven{url "http://jasperreports.sourceforge.net/maven2/"}
maven{url "http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/"}
}
configurations {
jasperreports {
transitive = true
}
}
gradle.projectsEvaluated {
processResources.dependsOn(compileJasperReports)
}
dependencies {
jasperreports 'net.sf.jasperreports:jasperreports:5.6.0',
'org.codehaus.groovy:groovy-all:2.3.6'
}
task compileJasperReports {
def jasperSourceDir = file('src/main/jasperreports')
ant {
taskdef(name: 'jrc', classname: 'net.sf.jasperreports.ant.JRAntCompileTask', classpath: configurations.jasperreports.asPath)
sourceSets.main.output.classesDir.mkdirs()
jrc(srcdir: jasperSourceDir, destdir: sourceSets.main.output.classesDir) {
classpath(path: sourceSets.main.output.classesDir)
include(name: '**/*.jrxml')
}
}
}