-
Notifications
You must be signed in to change notification settings - Fork 0
/
MODULE.bazel
104 lines (78 loc) · 3.5 KB
/
MODULE.bazel
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
"Bazel dependencies"
bazel_dep(name = "rules_jvm_external", version = "6.6")
bazel_dep(name = "contrib_rules_jvm", version = "0.27.0")
bazel_dep(name = "rules_go", version = "0.50.1")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "gazelle", version = "0.37.0")
include("//infra/containers:containers.MODULE.bazel")
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
# Version variables
# renovate: datasource=maven depName=com.google.inject:guice-bom
GUICE_VERSION = "7.0.0"
# renovate: datasource=maven depName=org.jboss.resteasy:resteasy-bom
RESTEASY_VERSION = "7.0.0.Alpha4"
# renovate: datasource=maven depName=org.eclipse.jetty:jetty-bom
JETTY_VERSION = "11.0.24"
# renovate: datasource=maven depName=org.glassfish.jersey:jersey-bom
JERSEY_VERSION = "4.0.0-M1"
# renovate: datasource=maven depName=org.flywaydb:flyway-core
FLYWAY_VERSION = "10.22.0"
# renovate: datasource=maven depName=com.fasterxml.jackson:jackson-bom
JACKSON_VERSION = "2.18.2"
# renovate: datasource=maven depName=org.jooq:jooq
JOOQ_VERSION = "3.19.15"
# renovate: datasource=maven depName=org.postgresql:postgresql
POSTGRES_VERSION = "42.7.4"
# renovate: datasource=maven depName=org.assertj:assertj-core
ASSERTJ_VERSION = "3.26.3"
JUNIT_VERSION = "5.10.3"
JUNIT_PLATFORM_VERSION = "1.10.3"
MOCKITO_VERSION = "5.12.0"
TESTCONTAINERS_VERSION = "1.19.8"
maven.install(
artifacts = [
# Testing
"org.assertj:assertj-core:" + ASSERTJ_VERSION,
"org.junit.platform:junit-platform-launcher:" + JUNIT_PLATFORM_VERSION,
"org.junit.platform:junit-platform-reporting:" + JUNIT_PLATFORM_VERSION,
"org.junit.jupiter:junit-jupiter-api:" + JUNIT_VERSION,
"org.junit.jupiter:junit-jupiter-engine:" + JUNIT_VERSION,
"org.mockito:mockito-core:" + MOCKITO_VERSION,
"org.mockito:mockito-junit-jupiter:" + MOCKITO_VERSION,
"org.testcontainers:junit-jupiter:" + TESTCONTAINERS_VERSION,
"org.testcontainers:postgresql:" + TESTCONTAINERS_VERSION,
# Dependency Injection
"com.google.inject:guice:" + GUICE_VERSION,
"com.google.inject.extensions:guice-servlet:" + GUICE_VERSION,
# Resteasy
"org.jboss.resteasy:resteasy-servlet-initializer:" + RESTEASY_VERSION,
"org.jboss.resteasy:resteasy-client:" + RESTEASY_VERSION,
"org.jboss.resteasy:resteasy-jaxb-provider:" + RESTEASY_VERSION,
# Jakarta EE
"jakarta.platform:jakarta.jakartaee-web-api:10.0.0",
# Jetty
"org.eclipse.jetty:jetty-server:" + JETTY_VERSION,
"org.eclipse.jetty:jetty-servlet:" + JETTY_VERSION,
"org.eclipse.jetty:jetty-util:" + JETTY_VERSION,
# Jersey
"org.glassfish.jersey.core:jersey-server:" + JERSEY_VERSION,
"org.glassfish.jersey.containers:jersey-container-servlet-core:" + JERSEY_VERSION,
"org.glassfish.jersey.inject:jersey-hk2:" + JERSEY_VERSION,
"org.glassfish.jersey.media:jersey-media-json-jackson:" + JERSEY_VERSION,
# Flyway
"org.flywaydb:flyway-core:" + FLYWAY_VERSION,
"org.flywaydb:flyway-database-postgresql:" + FLYWAY_VERSION,
# Jackson
"com.fasterxml.jackson.datatype:jackson-datatype-jdk8:" + JACKSON_VERSION,
# PostgreSQL
"org.postgresql:postgresql:" + POSTGRES_VERSION,
# jOOQ
"org.jooq:jooq:" + JOOQ_VERSION,
],
fetch_sources = True,
repositories = [
"http://uk.maven.org/maven2",
"https://jcenter.bintray.com/",
],
)
use_repo(maven, "maven")