This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new b3a42e147 [ISSUE #5042] Exclude `mysql-connector-j` from classpath
(#5043)
b3a42e147 is described below
commit b3a42e1479066d920f3355a5a6521d3f384086db
Author: Pil0tXia <[email protected]>
AuthorDate: Fri Jul 26 09:55:49 2024 +0800
[ISSUE #5042] Exclude `mysql-connector-j` from classpath (#5043)
* feat: Add a new deniedLicense
* feat: change implementation namespace to compileOnly
---
build.gradle | 3 ++-
eventmesh-admin-server/build.gradle | 2 +-
eventmesh-connectors/eventmesh-connector-canal/build.gradle | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/build.gradle b/build.gradle
index 3d2f8604a..01beb47a7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -450,7 +450,8 @@ tasks.register('checkDeniedLicense') {
"GPL-1.0", "GPL-2.0", "GPL-3.0", "AGPL-3.0", "LGPL-2.0",
"LGPL-2.1", "LGPL-3.0",
"GPL-1.0-only", "GPL-2.0-only", "GPL-3.0-only",
"AGPL-3.0-only", "LGPL-2.0-only", "LGPL-2.1-only", "LGPL-3.0-only",
"QPL-1.0", "Sleepycat", "SSPL-1.0", "CPOL-1.02",
- "BSD-4-Clause", "BSD-4-Clause-UC", "NPL-1.0", "NPL-1.1", "JSON"
+ "BSD-4-Clause", "BSD-4-Clause-UC", "NPL-1.0", "NPL-1.1",
"JSON",
+ "The GNU General Public License, v2 with Universal FOSS
Exception, v1.0"
]
// Update exemptions according to
https://github.com/apache/eventmesh/issues/4842
def allowedArtifacts = ["amqp-client", "stax-api", "javassist", "ST4",
"xsdlib", "jsqlparser"]
diff --git a/eventmesh-admin-server/build.gradle
b/eventmesh-admin-server/build.gradle
index 6de881725..bdb6406da 100644
--- a/eventmesh-admin-server/build.gradle
+++ b/eventmesh-admin-server/build.gradle
@@ -36,7 +36,7 @@ dependencies {
//
https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
implementation "com.alibaba:druid-spring-boot-starter"
- implementation 'com.mysql:mysql-connector-j'
+ compileOnly 'com.mysql:mysql-connector-j'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
}
diff --git a/eventmesh-connectors/eventmesh-connector-canal/build.gradle
b/eventmesh-connectors/eventmesh-connector-canal/build.gradle
index 134af8ed3..6beeac41e 100644
--- a/eventmesh-connectors/eventmesh-connector-canal/build.gradle
+++ b/eventmesh-connectors/eventmesh-connector-canal/build.gradle
@@ -27,7 +27,7 @@ dependencies {
implementation project(":eventmesh-common")
implementation canal
implementation "com.alibaba:druid"
- implementation 'com.mysql:mysql-connector-j'
+ compileOnly 'com.mysql:mysql-connector-j'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation "org.mockito:mockito-core"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]