-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
107 lines (91 loc) · 2.5 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
apply plugin: 'java-library'
group = "com.pega.integration"
description = 'Avro and Confluent schema registry support for Kafka data set'
version = '1.0.0'
repositories {
jcenter()
maven {
url = "http://packages.confluent.io/maven"
}
flatDir {
dirs "libs"
}
}
configurations {
thirdparty {
transitive = false
}
pega
}
dependencies {
pega(
':d-node',
':prpublic',
':prprivate',
':prprivcommon',
':prcommons-lang',
':printegrext',
':printegrint',
':prenginext',
':pricu2jdk',
':prbootstrap',
':prbootstrap-api',
':prpublic-dsmint'
)
thirdparty(
'org.apache.avro:avro:1.11.0',
'io.confluent:common-utils:5.2.1',
'io.confluent:common-config:5.2.1',
'io.confluent:kafka-avro-serializer:7.3.1',
'io.confluent:kafka-schema-registry-client:7.3.1'
)
compile(
'com.google.guava:guava:25.1-jre',
'commons-lang:commons-lang:2.6',
configurations.pega,
configurations.thirdparty
)
testImplementation 'junit:junit:4.13.2'
testCompile(
'commons-io:commons-io:2.7',
'org.mockito:mockito-all:1.10.19',
'org.apache.commons:commons-collections4:4.3',
'org.assertj:assertj-core:2.6.0'
)
testRuntime(
'org.apache.logging.log4j:log4j-api:2.16.0',
'org.apache.logging.log4j:log4j-core:2.16.0'
)
}
task createJar(type: Jar) {
from sourceSets.main.output
exclude '**/*.xml'
exclude '**/*jar'
}
task createWrapperJar(type: Jar) {
baseName = 'schema-registry-integration'
manifest {
attributes(
'Manifest-Version': "1.0",
'PackageDate': new Date().format("yyyy-MM-dd'T'HH:mm:ss.SSSZ"),
'Pega-Codeset-Version': "06-01-01",
'Pega-Codeset-IsPatch': "False",
'Pega-Codeset-Name': "Customer",
'Packaged-For': 'Avro support for Kafka data set',
'Name': 'lib/'
)
}
from('src/main/resources') {
include 'Application.xml'
include 'SchemaRegistrySupport_rules.zip'
}
into('lib/pega') {
from createJar
from configurations.thirdparty
}
into('delete/pega') {
from('src/main/resources') {
include 'avro-1.8.2.jar.delete'
}
}
}