You are on page 1of 2

build.gradle 4.2.2022.

19:43

1 apply plugin: "com.axelor.app-module"


2
3 apply from: "../libs.gradle"
4 apply from: "../version.gradle"
5
6 apply {
7 version = openSuiteVersion
8 }
9
10 axelor {
11 title "Axelor Bank Payment"
12 description "Axelor Bank Payment Module"
13 }
14
15 configurations {
16 jaxb
17 }
18
19 dependencies {
20 api project(":modules:axelor-account")
21
22 jaxb libs.jaxb_xjc
23 jaxb libs.jaxb_impl
24 jaxb libs.jaxb_api
25
26 api files("src/main/lib/ebics-1.0.2.jar")
27
28 implementation libs.bcprov_jdk15on
29 implementation libs.bcpkix_jdk15on
30
31 implementation libs.commons_codec
32 implementation libs.commons_httpclient
33
34 implementation libs.xmlsec
35 implementation libs.xalan
36 implementation libs.jdom
37
38 compileOnly libs.jaxb_api
39 }
40
41 license {
42 // Don't generate license header on java classes generated from xsd
43 // exclude "**/xsd/pain_001_001_*/**"
44 exclude "**/xsd/sepa/**"
45 }
46
47 task xjc () {
48 def source = "${projectDir}/src/main/resources/xsd/sepa"
49 def target = "${buildDir}/src-gen/xjc"
50
51 inputs.dir(source)
52 outputs.dir(target)
53
54 def xsdToGenerate = [
55 ['package': 'com.axelor.apps.bankpayment.xsd.sepa.pain_001_001_02', 'destdir': "$target", 'schema'
56 ['package': 'com.axelor.apps.bankpayment.xsd.sepa.pain_001_001_03', 'destdir': "$target", 'schema'
57 ['package': 'com.axelor.apps.bankpayment.xsd.sepa.pain_008_001_01', 'destdir': "$target", 'schema'
58 ['package': 'com.axelor.apps.bankpayment.xsd.sepa.pain_008_001_02', 'destdir': "$target", 'schema'
59 ]
60
61 doLast {
62 ant.taskdef(name: 'xjc', classname: 'com.sun.tools.xjc.XJCTask', classpath: configurations.jaxb.as
63
64 xsdToGenerate.each { argsin ->

Page 1 of 2
build.gradle 4.2.2022. 19:43

65 ant.xjc ( argsin )
66 }
67 }
68
69 sourceSets {
70 main {
71 java {
72 srcDirs target
73 }
74 }
75 }
76 }
77
78 generateCode.finalizedBy xjc
79

Page 2 of 2

You might also like