Skip to content

Releases: bazelbuild/bazel

0.5.0

26 May 12:32
Compare
Choose a tag to compare

Release 0.5.0 (2017-05-26)

Note: this release contains a bug in the compiler detection on macOS and
requires Xcode and the iOS tooling to be installed (corresponding issue #3063). If you had
Command Line Tools installed, you also need to switch to Xcode using
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer.

Baseline: f3ae88e

Cherry picks:

  • c58ba09:
    Release to GCS: put the final release in its own directory
  • 0acead4:
    Update protobuf to latest master at a64497c and apply
    @laszlocsomor's latest changes from
    protocolbuffers/protobuf#2969 on top of it.
  • d0242ce:
    Make symlinks consistent
  • d953ca8:
    Clean VanillaJavaBuilder output directories
  • 755669f:
    Pass all the environment variable to Bazel during bootstrapping
  • 6f04166:
    Do not mark the JDK7 installer -without-jdk-installer
  • 7205611:
    Fix #2958: Installer should not overwrite bazelrc
  • 511c35b:
    Bootstrap: move the fail function to the top
  • 8470be1:
    Clean up javac and Error Prone targets
  • 4a404de:
    Update javac version to 9-dev-r4023-2
  • 36ce4b4:
    Update javac version to 9-dev-r4023-2
  • 38949b8:
    Migrate off versioned javac and Error Prone targets
  • 1a57d29:
    Re-enabling passing -sourcepath via javacopts.
  • eb565f4:
    Make make sure that msys build actually builds msys version
  • 39f328c:
    Fix typo. Also do not override host_cpu for msvc.
  • 6248028:
    Select correct JDK for windows_msys
  • c4f271d:
    Automated g4 rollback of commit
    3e5edaf.
  • 9261809:
    Remove process-tools.cc which I forgot to delete during the last
    rollback.
  • baca6e4:
    Fix #2982: Bazel installer should not check for installed JDK if
    using a bundled JDK.
  • 866ecc8:
    Disable msys path conversion on Windows.
  • cc21998:
    Rollforward #2 of: Basic open-source crosstool to support
    targeting apple platform types.
  • 0f0ccc4:
    Escape % in strings that will appear in Crosstool
  • 3b08f77:
    Adding feature for linking C Run-Time library on Windows

Incompatible changes:

  • Bazel's Linux sandbox no longer mounts an empty tmpfs on /tmp,
    instead the existing /tmp is mounted read-write. If you prefer
    to have a tmpfs on /tmp for sandboxed actions for increased
    hermeticity, please use the flag --sandbox_tmpfs_path=/tmp.
  • Converting artifacts to strings and printing them now return
    "File" instead of "Artifact" to be consistent with the type name.
  • The return type of depset.to_list() is now a list rather than a
    frozen list. (Modifying the list has no effect on the depset.)
  • Bazel now prints logs in single lines to java.log
  • --use_dash, --dash_url and --dash_secret are removed.
  • Remote repositories must define any remote repositories they
    themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be
    defined
    in @x's WORKSPACE file).
  • objc_xcodeproj has been removed, use tulsi.bazel.build instead.

New features:

  • If grte_top is a label, it can now follow non-configurable
    redirects.
  • Optional coverage_files attribute to cc_toolchain
  • "query --output=build" now includes select()s
  • Raw LLVM profiles are now supported.

Important changes:

  • Automatically generate Proguard mapping when resource shrinking
    and Proguard are enabled.
  • New rules in Bazel: proto_library, java_lite_proto_library,
    java_proto_library and cc_proto_library
  • Activate the "dead_strip" feature if objc binary stripping is
    enabled.
  • More stable naming scheme for lambda classes in desugared android
    code
  • Convert --use_action_cache to a regular option
  • Per-architecture dSYM binaries are now propagated by
    apple_binary's AppleDebugOutputsProvider.
  • Avoid factory methods when desugaring stateless lambdas for
    Android
  • desugar calls to Objects.requireNonNull(Object o) with
    o.getClass() for android
  • Add an --copy_bridges_from_classpath argument to android
    desugaring tool
  • Change how desugar finds desugared classes to have it working on
    Windows
  • Evaluation of commands on TargetsBelowDirectory patterns
    (e.g. //foo/...) matching packages that fail to load now report
    more
    detailed error messages in keep_going mode.
  • Allow to have several inputs and outputs
  • Repository context's execute() function can print stdout/stderr
    while running. To enable, pass quiet=False.
  • Bazel can now be built with a bundled version of the OpenJDK.
    This makes it possible to use Bazel on systems without a JDK, or
    where
    the installed JDK is too old.
  • The --jobs flag now defaults to "auto", which causes Bazel to
    use a reasonable degree of parallelism based on the local
    machine's
    capacity.
  • Bazel benchmark (perf.bazel.build) supports Java and Cpp targets.
  • no factory methods generated for lambda expressions on android
  • The Linux sandbox no longer changes the user to 'nobody' by
    default, instead the current user is used as is. The old behavior
    can be
    restored via the --sandbox_fake_username flag.
  • /tmp and /dev/shm are now writable by default inside the
    Linux sandbox.
  • Bazel can now use the process-wrapper + symlink tree based
    sandbox implementation in FreeBSD.
  • turn on --experimental_incremental_dexing_error_on_missed_jars by
    default.
  • All android_binarys are now signed with both Apk Signature V1 and
    V2. See https://source.android.com/security/apksigning/v2.html
    for more details.
  • Windows MSVC wrappers: Not filtering warning messages anymore,
    use --copt=-w and --host_copt=-w to suppress them.
  • A downloader bug was fixed that prevented RFC 7233 Range
    connection resumes from working with certain HTTP servers
  • Introduces experimental android_device rule for configuring and
    launching Android emulators.
  • For boolean flags, setting them to false using --no_<flag_name>
    is deprecated. Use --no<flag_name> without the underscore, or
    --<flag_name>=false instead.
  • Add --experimental_android_compress_java_resources flag to store
    java
    resources as compressed inside the APK.
  • Removed --experimental_use_jack_for_dexing and libname.jack
    output of
    android_library.
  • blaze canonicalize-flags now takes a --show_warnings flag
  • Changing --invocation_policy will no longer force a server
    restart.
  • Bazel now supports Android NDK14.
  • android_binary multidex should now work without additional flags.
  • Use action_config in crosstool for static library archiving,
    remove ar_flag.
  • new option for bazel canonicalize-flags, --canonicalize_policy
  • Use action_config in crosstool for static library archiving,
    remove ar_flag.
  • android_library exports_manifest now defaults to True.
  • Fix select condition intersections.
  • Adds a --override_repository option that takes a repository
    name and path. This forces Bazel to use the directory at that path
    for the repository. Example usage:
    --override_repository=foo=/home/user/gitroot/foo.
  • fix idempotency issue with desugaring lambdas in interface
    initializers for android
  • --experimental_android_use_singlejar_for_multidex is now a no-op
    and will eventually be removed.
  • Every local_repository now requires a WORKSPACE file.
  • Remove jack and jill attributes of the android_sdk rule.
  • Add Skylark stubs needed to remove sysroot from CppConfiguration.
  • Desugar try-with-resources so that this language feature is
    available
    to deveces with API level under 19.
  • The flag --worker_max_retries was removed. The
    WorkerSpawnStrategy no longer retries execution of failed Spawns,
    the reason being that this just masks compiler bugs and isn't
    done for any other execution strategy either.
  • Bazel will no longer gracefully restart workers that crashed /
    quit, instead this triggers a build failure.
  • android_ndk_repository now creates a cc_library
    (@androidndk//:cpufeatures) for the cpufeatures library that is
    bundled in the Android NDK. See
    https://developer.android.com/ndk/guides/cpu-features.html for
    more details.
  • 'output_groups' and 'instrumented_files' cannot be specified in
    DefaultInfo.
  • You can increase the CPU reservation for tests by adding a
    "cpu:" (e.g. "cpu:4" for four cores) tag to their rule in a
    BUILD file. This can be used if tests would otherwise overwhelm
    your system if there's too much parallelism.
  • Deprecate use_singlejar_for_proguard_libraryjars and force
    behavior to always on.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJ...

Read more

0.4.5

16 Mar 13:08
Compare
Choose a tag to compare

Release 0.4.5 (2017-03-16)

Known issues: This release contains a flakiness on windows and we recommend to set --strategy=Javac=standalone in your .bazelrc file

Baseline: 2e689c2

Cherry picks:

  • a28b540:
    Fix Cpp action caching
  • 6d1d424:
    Fix paths of binaries in .deb packages.
  • 0785cbb:
    Update to guava 21.0 and Error Prone version 2.0.18-20160224
  • 3049051:
    Update to latest javac and Error Prone
  • 867d16e:
    Allow ' ', '(', ')' and '$' in labels
  • 7b295d3:
    Pass through -sourcepath to the JavaBuilder
  • 14e4755:
    PathFragment comparisons are now platform-aware
  • ed77952:
    Flag to import external repositories in python import path
  • 81ae08b:
    Suppress error for non-exhaustive switches
  • e8d1177:
    Correctly returns null if an environment variables is missing
  • 869d52f:
    Fix NPE in Android{S,N}dkRepositoryFunction.
  • d72bc57:
    Select the good guava jars for JDK7 build
  • 92ecbae:
    Windows: Assist JNI builds with a target for jni_md.h.
  • 3695880:
    Add java_common.create_provider to allow creating a
    java_common.provider
  • 8c00f39:
    Improve handling of unknown NDK revisions in
    android_ndk_repository.
  • b6ea0d3:
    Add the appropriate cxx_builtin_include_directory entries for
    clang to the Android NDK crosstool created by
    android_ndk_repository.

Incompatible changes:

  • Depsets (former sets) are converted to strings as "depset(...)"
    instead of
    "set(...)".
  • Using --symlink_prefix is now applied to the output
    symlink (e.g. bazel-out) and the exec root symlink (e.g.
    bazel-workspace).
  • Bazel now uses the test's PATH for commands specified as
    --run_under; this can affect users who explicitly set PATH to
    a more
    restrictive value than the default, which is to forward the
    local PATH
  • It's not allowed anymore to compare objects of different types
    (i.e. a string to an integer) and objects for which comparison
    rules are not
    defined (i.e. a dict to another dict) using order operators.

New features:

  • environ parameter to the repository_rule function let
    defines a list of environment variables for which a change of
    value
    will trigger a repository refetching.

Important changes:

  • android_ndk_repository now supports Android NDK R13.
  • Android resource shrinking is now available for android_binary
    rules. To enable, set the attribute 'shrink_resources = 1'. See
    https://bazel.build/versions/master/docs/be/android.html#android_b
    inary.shrink_resources.
  • resolve_command/action's input_manifest return/parameter is now
    list
  • For increased compatibility with environments where UTS
    namespaces are not available, the Linux sandbox no longer hides
    the hostname of the local machine by default. Use
    --sandbox_fake_hostname to re-enable this feature.
  • proto_library: alias libraries produce empty files for descriptor
    sets.
  • Adds pkg_rpm rule for generating RPM packages.
  • Allow CROSSTOOL files to have linker flags specific to static
    shared libraries.
  • Make it mandatory for Java test suites in bazel codebase, to
    contain at least one test.
  • Support for Java 8 lambdas, method references, type annotations
    and repeated annotations in Android builds with
    --experimental_desugar_for_android.
  • Removed .xcodeproj automatic output from objc rules. It can still
    be generated by requesting it explicitly on the command line.
  • Flips --explicit_jre_deps flag on by default.
  • Activate the "dbg", "fastbuild", and "opt" features in the objc
    CROSSTOOL.
  • Remove support for configuring JDKs with filegroups; use
    java_runtime and java_runtime_suite instead
  • android_ndk_repository api_level attribute is now optional. If not
    specified, the highest api level in the ndk/platforms directory
    is used.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Security: All our binaries are signed with our
public key 48457EE0.

0.4.4

01 Feb 19:01
Compare
Choose a tag to compare

Release 0.4.4 (2017-02-01)

Note: this release has 4 major regressions: #2526 #2473 #2490 and JDK-8154180. We are doing our best to issue a new bug-free release.

Baseline: 4bf8cc3

Cherry picks:

  • ef1c6fd: msvc_tools.py.tpl: Change default runtime library to
    static

Incompatible changes:

  • Only targets with public visibility can be bound to something in
    //external: .
  • The deprecated -x startup option has been removed.
  • docker_build: change the repository names embedded by
    docker_build. You can revert to the old behavior by setting
    legacy_repository_naming=True.
  • The string methods strip(), lstrip(), and rstrip() now
    by default remove the same whitespace characters as Python 3
    does, and accept
    None as an argument.
  • Deprecated globals HOST_CFG and DATA_CFG are removed. Use strings
    "host" and "data" instead.
  • repository_ctx environment is now affected by --action_env flag
    (value from the
    client environment will be replaced by value given on the command
    line through --action_env).
  • All executable labels must also have a cfg parameter specified.
  • Removed the cmd_helper.template function.
    The function was equivalent to:
    def template(items, template):
    return [template.format(path = i.path, short_path =
    i.short_path)
    for i in items]
  • Tuples that end with a trailing comma must now be inside parens,
    e.g. (1,) instead of 1,
  • The traversal orders for depsets have been renamed. The old names
    are deprecated and will be removed in the future. New names:
    "stable" -> "default", "compile" -> "postorder", "link" ->
    "topological", "naive_link" -> "preorder".

New features:

  • Skylark: you can now multiply a list by an integer to get the
    concatenation of N copies of this list, e.g. [a,b] * 3 =
    [a,b,a,b,a,b]
  • Allow Android aidl tool to add a jar to the program's classpath,
    such as if needed to support generated sources.
  • Add transitive proguard_specs when android_sdk.aidl_lib is
    specified
  • Windows: "/dev/null" is now a supported path, e.g.
    --bazelrc=/dev/null now works

Important changes:

  • Bazel Android builds use the apksigner tool from the Android SDK
    build-tools. Bazel Android builds now require build-tools version
    24.0.3 or
    later.
  • Android SDK external bindings for support libraries, e.g.
    //external:android/appcompat_v4, are removed because the support
    library JARs that they referenced no longer ship with the Android
    SDK.
  • aar_import rule is now documented.
  • An IE bug was fixed in repository_ctx.download_and_extract
  • Update "-I" to "-isystem" in documentation to reflect current
    behavior.
  • android_sdk_repository build_tools_version is now optional. The
    highest installed build-tools will be used if none is specified.
  • New flag --sandbox_add_mount_pair to specify customized
    source:target path pairs to bind mount inside the sandbox.
  • expose proto_library descriptor set to skylark via
    .proto.descriptor_set
  • The set constructor is deprecated in favor of depset
  • Autodetect gold linker in cc_configure.bzl
  • Remove build flag --experimental_j2objc_annotation_processing. It
    is on by default now.
  • Set clang's -mwatchos-version-min correctly using the value of
    --watchos_minimum_os, not --watchos_sdk_version.
  • singlejar can now create jar files larger than 4GB.
  • android_sdk_repository and android_ndk_repository now read
    $ANDROID_HOME and $ANDROID_NDK_HOME if the path attribute is not
    set.
  • Removed broken api levels 3, 4 and 5 from Android NDK 12.
  • Default --android_dynamic_mode to off.
  • android_sdk_repository no longer requires api_level. If one is
    not specified, the highest android platform installed will be
    used. Furthermore, android_sdk's are created for all android
    platforms installed and can be specified with the --android_sdk
    flag.
  • To iterate over or test for membership in a set, prefer using the
    new to_list() method. E.g., "for x in myset.to_list():", or
    "print(x in myset.to_list())". Iteration/membership-test on the
    raw set itself is deprecated.
  • Remove support for --javawarn; use e.g. --javacopt=-Xlint:all
    instead

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Security: All our binaries are signed with our
public key 48457EE0.

0.4.3

22 Dec 12:37
Compare
Choose a tag to compare

Release 0.4.3 (2016-12-22)

Baseline: c645a45

Cherry picks:

  • af878d0: Add coverage support for java test. (series 4/4 of
    open-sourcing coverage command for java test)
  • 09b92a8: Rollback of commit
    67b4d52.
  • b11dd48: Fix bad bug with the parallel implementation of
    BinaryOperatorExpression. Turns out that
    ForkJoinTask#adapt(Callable) returns a ForkJoinTask
    whose Future#get on error throws a ExecutionException
    wrapping a RuntimeException wrapping the thrown checked
    exception from the callable. This is documented
    behavior [1] that I incorrectly didn't know about.
  • 9012bf1: Fix scripts/packages/convert_changelog to read the
    changelog correctly
  • 55c97bc: Release script: if master branch does not exist, fall
    back on origin/master
  • 4fb378c: Debian repository: override section and priority fields
  • acbcbc2: Fix release notes in emails
  • 4975760: Fix PathFragment to not use Java8-only static hashCode
    methods.
  • 05fd076: Disable sandboxing for XibCompile actions.

Incompatible changes:

  • Skylark maven_jar and maven_aar settings attribute is now a label
    so it can be checked into your workspace.
  • --{no}experimental_use_rclass_generator is now a nop.

New features:

  • Coverage support (experimental) for pure Java target.
    Use bazel coverage //my:target to generate coverage information
    from a java_test.

Important changes:

  • Enable fallback URLs in Skylark http rules.
  • cc_proto_library generates C++ code from proto_library rules.
  • cc_library now supports the strip_prefix and strip_include_prefix
    attributes for control of include paths.
  • Skylark dicts internally don't rely on keys order anymore and
    accept any hashable values (i.e. structs with immutable values)
    as keys. Iteration order of dictionaries is no longer specified.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Security: All our binaries are signed with our
public key 48457EE0.

0.4.2

07 Dec 18:54
Compare
Choose a tag to compare

Release 0.4.2 (2016-12-02)

Baseline: 6331a94

Cherry picks:

  • 7b835d9: Do not patch WORKSPACE in the release process

Incompatible changes:

  • Callback functions in Skylark no longer support the cfg
    parameter. This is a cleanup and only affects the signatures of
    callbacks, since the parameter hasn't been set since September
    2016.

Important changes:

  • Alias proto_library's produce a descriptor set that contains all
    srcs of its dependencies.
  • proto_library supports strict proto deps.
  • Top level @AndroidSDK support library targets have been replaced
    by @androidsdk//:- for Android
    SDK Support and Google Play Services libraries.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Security: All our binaries are signed with our
public key 48457EE0.

0.4.1

30 Nov 09:23
Compare
Choose a tag to compare

Release 0.4.1 (2016-11-21)

Baseline: 2a26c3c

Cherry picks:

  • a79581e: Add gpu compile support to MSVC wrapper script

New features:

  • android_library now has a "exported_plugins" attribute just like
    java_library
  • Use --strict_system_includes to apply hdrs_check=strict also to
    cc_library.includes, even if sandboxing is disabled.
  • Bazel on Windows: java_binary can now be the executable of
    Skylark rule actions (ctx.action's executable argument)
  • Packages are defined in BUILD.bazel as well as BUILD files.

Important changes:

  • getattr()'s 3-arg form no longer raises an error when the
    retrieved field is a built-in method.
  • --apk_signing_method default changed to v1. Android APKs are now
    signed with the new ApkSignerTool by default.
  • New rule: proto_lang_toolchain(), to support LANG_proto_library
    rules on multiple platforms.
  • Fix for Android clang++ std::stack segfault on 32bit x86. See
    https://code.google.com/p/android/issues/detail?id=220159
  • Default android_manifest_merger is now "android" which uses the
    official Android manifest merger.
    http://tools.android.com/tech-docs/new-build-system/user-guide/man
    ifest-merger
  • Do not propagate aspect to its own attributes when using '*'.
  • Comparing sets (if set1 < set2:) is not allowed anymore in
    Skylark because it didn't work correctly anyway.
  • When --experimental_extra_action_top_level_only, Bazel reports
    extra-actions for actions registered by Aspects injected by a
    top-level rule (approximately).
  • Blacklists for proto_lang_toolchain() no longer have to be
    proto_library's.
  • Extra actions now contain aspect-related information.
  • Fix slicing bug where "abc"[:-4:-1] would give wrong answer

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Security: All our binaries are signed with our
public key 48457EE0.

0.4.0

02 Nov 18:03
Compare
Choose a tag to compare

Release 0.4.0 (2016-10-26)

Baseline: 088bbc6

Cherry picks:

  • b01160c: Stamp Windows release.
  • 2d6736e: Add --no-tty for gpg signing
  • 9b1dfb8: Remove .sig file before gpg signing
  • 81aede1: Reimplement whole archive on Windows

Incompatible changes:

  • Skylark: updating list/dicts while they are being looped over is not
    allowed. Use an explicit copy if needed ("for x in list(mylist):").
  • Bazel now uses the --cpu flag to look up Jvms; it falls back
    to "default" if it can't find a Jvm matching the CPU value.
  • --command_port=-1 to use AF_UNIX for client/server communications
    is not supported anymore.
  • Sandboxed actions can access the network by default, unless their
    target has a "block-network" tag.

New features:

  • Files now have an "extension" property in Skylark.

Important changes:

  • Added a new flag --sandbox_tmpfs_path, which asks the sandbox to
    mount an empty, writable directory at a specified path when
    running actions. (Supported on Linux only for now.)
  • Update protoc-3.0.0-mingw.exe to a working (statically linked)
    binary
  • apple_static_library rule to create multi-architecture static
    archive files from Objc/C++/Swift dependencies on apple platforms
  • JS: Add support for localization with closure managed rules.
  • Create a flag --android_dynamic_mode to turn off dynamic mode
    during the Android split transition.
  • Darwin sandboxing is default.
  • Remove flag --experimental_zip_tree_artifact from j2objc Java
    annotation processing support.
  • A few functions are added to BUILD files for consistency (hash,
    dir,
    hasattr, getattr) with .bzl files, although they are not very
    useful.
  • --watchfs is now a command option; the startup option of the same
    name is deprecated. I.e., use bazel build --watchfs, not
    blaze --watchfs
    build.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Security: All our binaries are signed with our
public key.

0.3.2

07 Oct 17:33
Compare
Choose a tag to compare

Release 0.3.2 (2016-10-07)

Baseline: 023a7bd

Cherry picks:

  • bebbbe5: Fix dependency on libtool's helper script
    make_hashed_objlist.py.
  • 8a0d45f: Add the version information to the bazel.exe file
  • 2bc0939: Allow new_ rules to overwrited BUILD files in
    downloaded repos
  • c5545fd: Rollback of commit
    96d4628.
  • eb87208: Make cc_configure on Windows more robust
  • c30432c: Fix cc_configure on Windows
  • 95b16a8: sandbox: Replace the error-prone lazy cleanup of
    sandbox directories by a simple synchronous cleanup.
  • e898023: Fix #1849: Sandboxing on OS X should be turned off by
    default for 0.3.2.
  • ffdc05d: Add action_config and feature for linking on Windows

Incompatible changes:

  • If you maintain a rule that uses persistent workers, you'll have
    to specify execution_requirements={"supports-workers": 1} in the
    ctx.action that intends to run a tool with workers. The
    WorkerSpawnStrategy will alert you with a warning message if you
    forget to make this change and fallback to non-worker based
    execution.
  • It is now an error to include a precompiled library (.a, .lo, .so)
    in a cc_library which would generate a library with the same name
    (e.g., libfoo.so in cc_library foo) if that library also contains
    other linkable
    sources.
  • The main repository's execution root is under the main
    repository's workspace name, not the source directory's basename.
    This shouldn't
    have any effect on most builds, but it's possible it could break
    someone doing
    weird things with paths in actions.
  • Blaze doesn't support Unix domain sockets for communication
    between its client and server anymore. Therefore, the
    --command_port command line argument doesn't accept -1 as a valid
    value anymore.
  • Skylark: It is an error to shadow a global variable with a local
    variable after the global has already been accessed in the
    function.
  • bin_dir and genfiles_dir are now properties of ctx, not
    configuration. That is, to access the bin or genfiles directory
    from a
    Skylark rule, use ctx.bin_dir or ctx.genfiles_dir (not
    ctx.configuration.{bin,genfiles}_dir). At the moment, you can
    access
    {bin,genfiles}_dir from either, but the ctx.configuration version
    will
    stop working in a future release.
  • filegroup-based C++ toolchains are not supported anymore.
    --*_crosstool_top options must always point to a
    cc_toolchain_suite rule (or an alias of one).
  • repository_ctx.{download,download_and_extract,execute} API now use
    named parameters for optional parameters and no
    longer uses argument
    type to distinguished between arguments
    (executable attribute name
    must be specified when preceding optional
    arguments are missing).

New features:

  • print and fail are now available in BUILD files.

Important changes:

  • Added @bazel_tools//tools/build_defs/repo/git.bzl as a Skylark
    rule for Git repositories.
  • Added @bazel_tools//tools/build_defs/repo/maven_rules.bzl as a
    Skylark rule for Maven repositories.
  • Add global hash() function for strings (only)
  • Improve Android split transition handling.
  • Removes exports_manifest attribute from android_binary rule.
  • java_proto_library: control strict-deps through a rule-level and
    a package-level attribute.
  • Persistent workers are now used by default for Java compilation
    in Bazel, which should speed up your Java builds by ~4x. You can
    switch back to the old behavior via --strategy=Javac=standalone.
    Check out http://www.bazel.io/blog/2015/12/10/java-workers.html
    for more details.
  • objc_* rules can now depend on any target that returns an "objc"
    provider.
  • Adds support for NDK12 to android_ndk_repository rule in Bazel.
  • Test targets can disable the JUnit4 test security manager via a
    property.
  • Disable the Android split transition if --android_cpu and
    fat_apk_cpu are both empty.
  • New sandboxing implementation for Linux in which all actions run
    in a separate execroot that contains input files as symlinks back
    to the originals in the workspace. The running action now has
    read-write access to its execroot and /tmp only and can no longer
    write in arbitrary other places in the file system.
  • Add worker support to single jar.
  • Invoke source jar action as a worker.
  • Sandboxed builds allow network access for builds by default.
    Tests will still be run without networking, unless
    "requires-network" is specified as a tag.
  • Add path.realpath() method for Skylark repositories.
  • On Mac devices, detect locally installed versions of xcode to:
    1. Use a sensible default if xcode is required but
      --xcode_version is unspecified.
    2. Use sensible default iOS SDK version for the targeted version
      of xcode if ios_sdk_version is unspecified.
  • Emacs' [C-x `], a.k.a. next-error, works again in emacsen >= 25.1
  • swift_library can be used to build watchOS apps.
  • Exposes the is_device field on Apple platform objects and adds
    the apple_common.platform_type(name) method to retrieve a
    platform_type value that can be passed to methods like the Apple
    fragment's multi_arch_platform.
  • Move Skylark git_repository rules to git.bzl
  • Add support for aspects to attr.label() attributes
  • Global varaiables HOST_CFG and DATA_CFG are deprecated in favor
    of strings "host"
    and "data.
    Argument cfg = "host" or cfg = "data" is mandatory if
    executable = True is provided for a label.
  • The deprecation attribute of all rules now causes warnings
    to be printed when other targets depend on a target with that
    attribute set.
  • Change default of --[no]instrument_test_targets to false, change
    default --instrumentation_filter (which previously tried to
    exclude test targets by heuristic) to only exclude targets in
    javatests.
  • Remove deprecated absolute paths in blaze IDE artifacts
  • When using android_binary.manifest_merger="android" the merger
    produces a summary log next to the merged manifest artifact.
  • Allow different default mallocs per configuration.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

0.3.1

29 Jul 09:43
Compare
Choose a tag to compare

Release 0.3.1 (2016-07-29)

Baseline: 792a9d6

Cherry picks:

  • 25e5995: Rollback of commit
    a277033.
  • 2479405: Fix NPE with unset maven_jar sha1
  • 3cf2126: Rewrite the extra action info files if the data within
    them changes.
  • 5a9c6b4: JavaBuilder: Reintroduce the -extra_checks flag.

Incompatible changes:

  • Removed predefined Python variable "generic_cpu".
  • Skylark rules: if you set "outputs" or an attribute to a
    function, this function must now list its required attributes as
    parameters (instead of an attribute map).
  • The host_platform and target_platform entries are not written to
    the master log anymore.
  • Bazel requires Hazelcast 3.6 or higher now for remote execution
    support, because we upgraded our client library and the protocol
    it uses is incompatible with older versions.

New features:

  • LIPO context (--lipo_context) can now also be a cc_test (in
    addition to cc_binary)

Important changes:

  • If --android_crosstool_top is set, native code compiled for
    android will always use --android_compiler and not --compiler in
    choosing the crosstool toolchain, and will use --android_cpu if
    --fat_apk_cpu is not set.
  • Add --instrument_test_targets option.
  • apple_binary supports a new platform_type attribute, which, if
    set to "watchos", will build dependencies for Apple's watchOS2.
  • objc_binary now supports late-loaded dynamic frameworks.
  • Native Swift rules no longer pull in module maps unconditionally.
    Use --experimental_objc_enable_module_maps for that.
  • Merged manifests are guaranteed to have the application element
    as the last child of the manifest element as required by Android
    N.
  • The Android manifest merger is now available as an option for
    android_binary rules. The merger will honor tools annotations in
    AndroidManifest.xml and will perform placeholder substitutions
    using the values specified in android_binary.manifest_values. The
    merger may be selected by setting the manifest_merger attribute
    on android_binary.
  • The progress message would not clear packages that need to be
    loaded twice.
  • Remove warning for high value of --jobs.
  • Use the correct build configuration for shared native deps during
    Android split transitions.
  • When building ObjectiveC++, pass the flag -std=gnu++11.
  • use xcrun simctl instead of iossim to launch the app for "blaze
    run".
  • Glob arguments 'exclude' and 'exclude_directories' must be named
  • Bazel no longer regards an empty file as changed if its mtime has
    changed.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

0.3.0

10 Jun 12:29
Compare
Choose a tag to compare

Release 0.3.0 (2016-06-10)

Baseline: a9301fa

Cherry picks:

  • ff30a73: Turn --legacy_external_runfiles back on by default
  • aeee3b8: Fix delete[] warning on fsevents.cc

Incompatible changes:

  • The --cwarn command line option is not supported anymore. Use
    --copt instead.

New features:

  • On OSX, --watchfs now uses FsEvents to be notified of changes
    from the filesystem (previously, this flag had no effect on OS X).
  • add support for the '-=', '*=', '/=', and'%=' operators to
    skylark. Notably, we do not support '|=' because the semantics
    of skylark sets are sufficiently different from python sets.

Important changes:

  • Use singular form when appropriate in blaze's test result summary
    message.
  • Added supported for Android NDK revision 11
  • --objc_generate_debug_symbols is now deprecated.
  • swift_library now generates an Objective-C header for its @objc
    interfaces.
  • new_objc_provider can now set the USES_SWIFT flag.
  • objc_framework now supports dynamic frameworks.
  • Symlinks in zip files are now unzipped correctly by http_archive,
    download_and_extract, etc.
  • swift_library is now able to import framework rules such as
    objc_framework.
  • Adds "jre_deps" attribute to j2objc_library.
  • Release apple_binary rule, for creating multi-architecture
    ("fat") objc/cc binaries and libraries, targeting ios platforms.
  • Aspects documentation added.
  • The --ues_isystem_for_includes command line option is not
    supported anymore.
  • global function 'provider' is removed from .bzl files. Providers
    can only be accessed through fields in a 'target' object.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.