diff options
author | ronshapiro <ronshapiro@google.com> | 2017-01-13 08:58:02 -0800 |
---|---|---|
committer | Ron Shapiro <shapiro.rd@gmail.com> | 2017-01-13 16:17:34 -0500 |
commit | 31d711c977df78d491ef9e7ffa1402046868e1aa (patch) | |
tree | 7e89df8f862009ae595c56579c93bdbaa0b0e2fb /BUILD | |
parent | 645657a691f6908a20718890b07fa8c8f4f68193 (diff) | |
download | dagger2-31d711c977df78d491ef9e7ffa1402046868e1aa.tar.gz |
Build Dagger with Bazel
The Maven infrastructure is not being removed in this CL. We will build and test with both Maven and Bazel until we have a successful release to Maven Central using bazel-built artifacts and automated tools to generate poms/ship to Central.
This CL does not address any of the scripts in util/ like publishing snapshots or generating javadoc. It also does not reorganize files into a more traditional bazel project structure.
Open questions:
- What should we do about shading?
- Right now, only auto-common is shaded. If we shade it, should we remove it from the deps of the compiler POM, since other users don't need it to build?
- How should we implement shading? One idea is to make a unified jar of the bazel-built compiler and auto-common, and then use jarjar to rename classes.
- What should we do with dagger-gwt? I'm not a GWT expert but it seems that we could recreate that jar with a genrule + jarjar
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=144448160
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -0,0 +1,40 @@ +# Copyright (C) 2017 The Dagger Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +package_group( + name = "src", + packages = ["//..."], +) + +py_test( + name = "maven_sha1_test", + srcs = ["tools/maven_sha1_test.py"], + data = [":WORKSPACE"], +) + +java_library( + name = "dagger_with_compiler", + exported_plugins = ["//compiler:component-codegen"], + exports = ["//core"], +) + +java_library( + name = "producers_with_compiler", + exports = [ + ":dagger_with_compiler", + "//producers", + ], +) |