Skip to content

Commit b3a42e1

Browse files
authored
[ISSUE #5042] Exclude mysql-connector-j from classpath (#5043)
* feat: Add a new deniedLicense * feat: change implementation namespace to compileOnly
1 parent f88a194 commit b3a42e1

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ tasks.register('checkDeniedLicense') {
450450
"GPL-1.0", "GPL-2.0", "GPL-3.0", "AGPL-3.0", "LGPL-2.0", "LGPL-2.1", "LGPL-3.0",
451451
"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",
452452
"QPL-1.0", "Sleepycat", "SSPL-1.0", "CPOL-1.02",
453-
"BSD-4-Clause", "BSD-4-Clause-UC", "NPL-1.0", "NPL-1.1", "JSON"
453+
"BSD-4-Clause", "BSD-4-Clause-UC", "NPL-1.0", "NPL-1.1", "JSON",
454+
"The GNU General Public License, v2 with Universal FOSS Exception, v1.0"
454455
]
455456
// Update exemptions according to https://github.com/apache/eventmesh/issues/4842
456457
def allowedArtifacts = ["amqp-client", "stax-api", "javassist", "ST4", "xsdlib", "jsqlparser"]

eventmesh-admin-server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636

3737
// https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
3838
implementation "com.alibaba:druid-spring-boot-starter"
39-
implementation 'com.mysql:mysql-connector-j'
39+
compileOnly 'com.mysql:mysql-connector-j'
4040
compileOnly 'org.projectlombok:lombok'
4141
annotationProcessor 'org.projectlombok:lombok'
4242
}

eventmesh-connectors/eventmesh-connector-canal/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies {
2727
implementation project(":eventmesh-common")
2828
implementation canal
2929
implementation "com.alibaba:druid"
30-
implementation 'com.mysql:mysql-connector-j'
30+
compileOnly 'com.mysql:mysql-connector-j'
3131
compileOnly 'org.projectlombok:lombok'
3232
annotationProcessor 'org.projectlombok:lombok'
3333
testImplementation "org.mockito:mockito-core"

0 commit comments

Comments
 (0)