Skip to content

Commit

Permalink
Clean up javac and Error Prone targets
Browse files Browse the repository at this point in the history
now that the upgrade is complete. The targets with suffixes were added
to make a two-step migration possible. Now that the migration is done
the suffix-less targets can provide the new versions, and the suffixed
targets can be directed to the un-suffixed targets until they are
removed.

Change-Id: I5632b14924df6a83a23e3f564d483f4925f72d08
  • Loading branch information
cushon authored and damienmg committed May 3, 2017
1 parent 148366f commit 8470be1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 64 deletions.
48 changes: 12 additions & 36 deletions third_party/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -333,32 +333,19 @@ java_import(
],
)

java_import(
# TODO(cushon): delete
alias(
name = "error_prone-2.0.20-SNAPSHOT",
jars = [
"error_prone/error_prone_check_api-2.0.20-SNAPSHOT.jar",
"error_prone/error_prone_core-2.0.20-SNAPSHOT.jar",
"error_prone/error_prone_annotations-2.0.20-SNAPSHOT.jar",
"error_prone/error_prone_annotation-2.0.20-SNAPSHOT.jar",
],
exports = [
":auto_common",
":guava",
":jcip_annotations",
":jsr305",
":pcollections",
"//third_party/checker_framework_dataflow",
"//third_party/jformatstring",
],
actual = ":error_prone",
)

java_import(
name = "error_prone",
jars = [
"error_prone/error_prone_check_api-2.0.19.jar",
"error_prone/error_prone_core-2.0.19.jar",
"error_prone/error_prone_annotations-2.0.19.jar",
"error_prone/error_prone_annotation-2.0.19.jar",
"error_prone/error_prone_check_api-2.0.20-SNAPSHOT.jar",
"error_prone/error_prone_core-2.0.20-SNAPSHOT.jar",
"error_prone/error_prone_annotations-2.0.20-SNAPSHOT.jar",
"error_prone/error_prone_annotation-2.0.20-SNAPSHOT.jar",
],
exports = [
":auto_common",
Expand Down Expand Up @@ -394,7 +381,7 @@ java_import(

# For bootstrapping JavaBuilder
filegroup(
name = "bootstrap_guava_and_error_prone-jars-2.0.20-SNAPSHOT",
name = "bootstrap_guava_and_error_prone-jars",
srcs = [
"auto/auto-common-0.3.jar",
"error_prone/error_prone_annotation-2.0.20-SNAPSHOT.jar",
Expand All @@ -410,21 +397,10 @@ filegroup(
],
)

filegroup(
name = "bootstrap_guava_and_error_prone-jars",
srcs = [
"auto/auto-common-0.3.jar",
"error_prone/error_prone_annotation-2.0.19.jar",
"error_prone/error_prone_annotations-2.0.19.jar",
"error_prone/error_prone_check_api-2.0.19.jar",
"error_prone/error_prone_core-2.0.19.jar",
"guava/guava-21.0.jar",
"jcip_annotations/jcip-annotations-1.0-1.jar",
"jsr305/jsr-305.jar",
"pcollections/pcollections-2.1.2.jar",
"//third_party/checker_framework_dataflow:bootstrap",
"//third_party/jformatstring:bootstrap",
],
# TODO(cushon): delete
alias(
name = "bootstrap_guava_and_error_prone-jars-2.0.20-SNAPSHOT",
actual = "bootstrap_guava_and_error_prone-jars",
)

# As of Guava 20.0, Guava code uses Error Prone annotations. This isn't a
Expand Down
4 changes: 2 additions & 2 deletions third_party/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ a minimal set of extra dependencies.

## [Error Prone](https://github.com/google/error-prone)

* Version: 2.0.19, 2.0.20-SNAPSHOT
* Version: 2.0.20-SNAPSHOT
* License: Apache License 2.0


Expand Down Expand Up @@ -166,7 +166,7 @@ a minimal set of extra dependencies.

## [javac](https://github.com/google/error-prone-javac)

* Version: 9-dev-r3297-4 (javac-9-dev-r3297-4.jar), 9-dev-r4023-1 (javac-9-dev-r4023-1.jar)
* Version: 9-dev-r4023-1 (javac-9-dev-r4023-1.jar)
* License: GNU GPL v2 with Classpath exception (plus other licenses, see third_party/java/jdk/langtools/LICENSE file).

## [jarjar](https://code.google.com/p/jarjar/)
Expand Down
39 changes: 13 additions & 26 deletions third_party/java/jdk/langtools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,54 +19,41 @@ filegroup(
"//conditions:default": [
"BUILD",
"LICENSE",
"javac-9-dev-r3297-4.jar",
"javac-9-dev-r3297-4.srcjar",
"javac-9-dev-r4023-1.jar",
"javac-9-dev-r4023-1.srcjar",
],
}),
)

java_import(
name = "javac",
jars = ["javac-9-dev-r3297-4.jar"],
jars = ["javac-9-dev-r4023-1.jar"],
)

filegroup(
name = "javac_jar",
srcs = select({
"//tools/jdk:jdk7": ["javac7.jar"],
"//conditions:default": ["javac-9-dev-r3297-4.jar"],
"//conditions:default": ["javac-9-dev-r4023-1.jar"],
}),
)

filegroup(
# TODO(cushon): delete
alias(
name = "test-srcs-9-dev-r4023-1",
srcs = select({
"//tools/jdk:jdk7": [
"BUILD",
"LICENSE",
"javac7.jar",
"javac7.srcjar",
],
"//conditions:default": [
"BUILD",
"LICENSE",
"javac-9-dev-r4023-1.jar",
"javac-9-dev-r4023-1.srcjar",
],
}),
actual = ":test-srcs",
)

java_import(
# TODO(cushon): delete
alias(
name = "javac-9-dev-r4023-1",
jars = ["javac-9-dev-r4023-1.jar"],
actual = ":javac",
)

filegroup(
# TODO(cushon): delete
alias(
name = "javac_jar-9-dev-r4023-1",
srcs = select({
"//tools/jdk:jdk7": ["javac7.jar"],
"//conditions:default": ["javac-9-dev-r4023-1.jar"],
}),
actual = ":javac_jar",
)

java_import(
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 8470be1

Please sign in to comment.