forked from jond3k/maven-wagon-gs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
48 lines (41 loc) · 1.64 KB
/
BUILD
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
load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain")
load("@rules_jvm_external//:defs.bzl", "java_export")
PROJECT_VERSION = "1.7.11-SNAPSHOT"
java_export(
name = "maven",
maven_coordinates = "io.github.janhicken:maven-wagon-gs:%s" % PROJECT_VERSION,
pom_template = ":pom_template.xml",
visibility = ["//visibility:public"],
runtime_deps = ["//src/main/java/io/github/janhicken/maven/wagon/gs:GSWagon"],
)
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ Java Toolchain Configuration ║
# ╚════════════════════════════════════════════════════════════════════════════╝
package_group(
name = "java_packages",
packages = [
"//src/main/java/...",
"//src/test/java/...",
"//tools",
],
)
java_package_configuration(
name = "strict_linting",
javacopts = [
"-Werror",
"-Xlint:all",
"-Xlint:-classfile",
"-Xlint:-serial",
"-Xlint:-processing",
"-Xlint:-try",
],
packages = [":java_packages"],
)
JAVA_VERSION = "11"
default_java_toolchain(
name = "java_toolchain",
package_configuration = [":strict_linting"],
source_version = JAVA_VERSION,
target_version = JAVA_VERSION,
visibility = ["//visibility:public"],
)