Skip to content

Commit

Permalink
build: update bazel workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
damingerdai committed Feb 4, 2024
1 parent 002aa1c commit c9795d2
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,44 @@ load("@rules_jvm_external//:defs.bzl", "maven_install")
# for https://github.com/apache/shiro/issues/891
shiros = [
maven.artifact(
group ="org.apache.shiro",
artifact = "shiro-spring-boot-web-starter",
version = "1.12.0",
# classifier = "jakarta",
),
group ="org.apache.shiro",
artifact = "shiro-spring-boot-web-starter",
version = "1.12.0",
# classifier = "jakarta",
),
maven.artifact(
group ="org.apache.shiro",
artifact = "shiro-spring-boot-starter",
version = "1.12.0",
classifier = "jakarta",
# classifier = "jakarta",
),
maven.artifact(
group = "org.apache.shiro",
artifact = "shiro-spring",
version = "1.12.0",
# classifier = "jakarta",
exclusions = [
maven.exclusion(
group = "javax.servlet",
artifact = "*",
),
maven.exclusion(
group = "org.apache.shiro",
artifact = "*",
),
]
classifier = "jakarta",
# exclusions = [
# maven.exclusion(
# group = "javax.servlet",
# artifact = "*",
# ),
# maven.exclusion(
# group = "org.apache.shiro",
# artifact = "*",
# ),
# ]
),
maven.artifact(
group = "org.apache.shiro",
artifact = "shiro-web",
version ="1.12.0",
classifier = "jakarta",
),
maven.artifact(
group = "org.apache.shiro",
artifact = "shiro-core",
version ="1.12.0",
classifier = "jakarta",
)
]

Expand All @@ -80,13 +86,13 @@ maven_install(
] + shiros,
fetch_sources = True,
repositories = [
"https://maven.aliyun.com/repository/public/",
"https://maven.aliyun.com/nexus/content/groups/public/",
# "https://maven.aliyun.com/repository/public/",
# "https://maven.aliyun.com/nexus/content/groups/public/",
"http://uk.maven.org/maven2",
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
override_targets = {
"javax.servlet:javax.servlet-api": "jakarta.servlet:jakarta.servlet-api",
},
# override_targets = {
# "javax.servlet:javax.servlet-api": "jakarta.servlet:jakarta.servlet-api",
# },
)

0 comments on commit c9795d2

Please sign in to comment.