1
- plugins {
2
- id ' java-library'
3
- id ' maven-publish'
4
- }
5
-
6
- group = ' org.apache.eventmesh'
7
- version = ' 1.0.0'
8
-
9
- repositories {
10
- mavenCentral()
11
- mavenLocal()
12
- }
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
13
17
14
18
dependencies {
15
- api project(' :eventmesh-common' )
16
- api project(' :eventmesh-protocol-plugin:eventmesh-protocol-api' )
19
+ implementation project(" :eventmesh-common" )
20
+ implementation project(" :eventmesh-protocol-plugin:eventmesh-protocol-api" )
21
+ implementation project(" :eventmesh-protocol-plugin:eventmesh-protocol-cloudevents" )
22
+ implementation project(" :eventmesh-protocol-plugin:eventmesh-protocol-http" )
17
23
18
- implementation ' com.fasterxml.jackson.core:jackson-databind:2.15.2'
19
- implementation ' org.slf4j:slf4j-api:2.0.7'
24
+ implementation " io.cloudevents:cloudevents-core"
25
+ implementation " io.cloudevents:cloudevents-json-jackson"
26
+ implementation " com.fasterxml.jackson.core:jackson-databind"
27
+ implementation " org.slf4j:slf4j-api"
20
28
21
- testImplementation ' org.junit.jupiter:junit-jupiter:5.9.3'
22
- testImplementation ' org.mockito:mockito-core:5.3.1'
23
- testImplementation ' org.mockito:mockito-junit-jupiter:5.3.1'
24
- }
25
-
26
- java {
27
- sourceCompatibility = JavaVersion . VERSION_11
28
- targetCompatibility = JavaVersion . VERSION_11
29
- }
30
-
31
- tasks. withType(JavaCompile ) {
32
- options. encoding = ' UTF-8'
33
- }
34
-
35
- test {
36
- useJUnitPlatform()
37
- testLogging {
38
- events " passed" , " skipped" , " failed"
39
- }
40
- }
41
-
42
- jar {
43
- manifest {
44
- attributes(
45
- ' Implementation-Title' : ' EventMesh A2A Protocol Plugin' ,
46
- ' Implementation-Version' : version,
47
- ' Implementation-Vendor' : ' Apache EventMesh' ,
48
- ' Automatic-Module-Name' : ' org.apache.eventmesh.protocol.a2a'
49
- )
50
- }
51
- }
52
-
53
- publishing {
54
- publications {
55
- mavenJava(MavenPublication ) {
56
- from components. java
57
- pom {
58
- name = ' EventMesh A2A Protocol Plugin'
59
- description = ' Agent-to-Agent Communication Protocol for EventMesh'
60
- url = ' https://eventmesh.apache.org'
61
- licenses {
62
- license {
63
- name = ' Apache License, Version 2.0'
64
- url = ' https://www.apache.org/licenses/LICENSE-2.0.txt'
65
- }
66
- }
67
- developers {
68
- developer {
69
- id = ' eventmesh'
70
- name = ' Apache EventMesh'
71
- email = ' dev@eventmesh.apache.org'
72
- }
73
- }
74
- scm {
75
- connection = ' scm:git:https://github.com/apache/eventmesh.git'
76
- developerConnection = ' scm:git:https://github.com/apache/eventmesh.git'
77
- url = ' https://github.com/apache/eventmesh'
78
- }
79
- }
80
- }
81
- }
82
- }
29
+ compileOnly ' org.projectlombok:lombok'
30
+ annotationProcessor ' org.projectlombok:lombok'
31
+
32
+ testImplementation ' org.junit.jupiter:junit-jupiter'
33
+ testImplementation ' org.mockito:mockito-core'
34
+ testImplementation ' org.mockito:mockito-junit-jupiter'
35
+ }
0 commit comments