Skip to content

Commit c1e405a

Browse files
l46kokcopybara-github
authored andcommitted
Prepare for 0.10.0 release
Fixes #678 PiperOrigin-RevId: 767349422
1 parent 0268902 commit c1e405a

File tree

16 files changed

+114
-27
lines changed

16 files changed

+114
-27
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ CEL-Java is available in Maven Central Repository. [Download the JARs here][8] o
5555
<dependency>
5656
<groupId>dev.cel</groupId>
5757
<artifactId>cel</artifactId>
58-
<version>0.9.0</version>
58+
<version>0.10.0</version>
5959
</dependency>
6060
```
6161

6262
**Gradle**
6363

6464
```gradle
65-
implementation 'dev.cel:cel:0.9.0'
65+
implementation 'dev.cel:cel:0.10.0'
6666
```
6767

6868
Then run this example:

WORKSPACE

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,17 @@ register_toolchains(
206206

207207
### googleapis setup
208208

209-
# as of 12/08/2022
209+
# as of 06/06/2025
210210
http_archive(
211211
name = "com_google_googleapis",
212-
sha256 = "8503282213779a3c230251218c924f385f457a053b4f82ff95d068f71815e558",
213-
strip_prefix = "googleapis-d73a41615b101c34c58b3534c2cc7ee1d89cccb0",
212+
sha256 = "228c134e606a10d9103ff2b22622989bbf13cc2a54ff626ff9ef6c1c7713e3b8",
213+
strip_prefix = "googleapis-1804a603281707a1f0e6fff27851cae115ac3c8b",
214214
urls = [
215-
"https://github.com/googleapis/googleapis/archive/d73a41615b101c34c58b3534c2cc7ee1d89cccb0.tar.gz",
215+
"https://github.com/googleapis/googleapis/archive/1804a603281707a1f0e6fff27851cae115ac3c8b.tar.gz",
216216
],
217217
)
218218

219+
219220
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
220221

221222
switched_rules_by_language(
@@ -264,16 +265,6 @@ http_archive(
264265
],
265266
)
266267

267-
# required by cel_spec
268-
http_archive(
269-
name = "io_bazel_rules_go",
270-
sha256 = "19ef30b21eae581177e0028f6f4b1f54c66467017be33d211ab6fc81da01ea4d",
271-
urls = [
272-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.0/rules_go-v0.38.0.zip",
273-
"https://github.com/bazelbuild/rules_go/releases/download/v0.38.0/rules_go-v0.38.0.zip",
274-
],
275-
)
276-
277268
http_jar(
278269
name = "antlr4_jar",
279270
sha256 = "eae2dfa119a64327444672aff63e9ec35a20180dc5b8090b7a6ab85125df4d76",

common/src/main/java/dev/cel/common/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ java_library(
9696
],
9797
deps = [
9898
"//:auto_value",
99+
"//common/annotations",
99100
"@maven//:com_google_errorprone_error_prone_annotations",
100101
],
101102
)

common/src/main/java/dev/cel/common/CelOptions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.google.auto.value.AutoValue;
1818
import com.google.errorprone.annotations.CheckReturnValue;
1919
import com.google.errorprone.annotations.Immutable;
20+
import dev.cel.common.annotations.Beta;
2021

2122
/**
2223
* Options to configure how the CEL parser, type-checker, and evaluator behave.
@@ -434,6 +435,7 @@ public abstract static class Builder {
434435
*
435436
* <p>Warning: This option is experimental.
436437
*/
438+
@Beta
437439
public abstract Builder enableCelValue(boolean value);
438440

439441
/**

common/src/main/java/dev/cel/common/annotations/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ package(
1111

1212
# keep sorted
1313
ANNOTATION_SOURCES = [
14+
"Beta.java",
1415
"Generated.java",
1516
"Internal.java",
1617
]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
package dev.cel.common.annotations;
16+
17+
import java.lang.annotation.ElementType;
18+
import java.lang.annotation.Retention;
19+
import java.lang.annotation.RetentionPolicy;
20+
import java.lang.annotation.Target;
21+
22+
/**
23+
* Indicates a public API that can change at any time, and has no guarantee of API stability and
24+
* backward-compatibility.
25+
*
26+
* <p>Note: This annotation is intended only for CEL library code. Users should not attach this
27+
* annotation to their own code.
28+
*/
29+
@Retention(RetentionPolicy.CLASS)
30+
@Target({
31+
ElementType.ANNOTATION_TYPE,
32+
ElementType.CONSTRUCTOR,
33+
ElementType.FIELD,
34+
ElementType.METHOD,
35+
ElementType.PACKAGE,
36+
ElementType.TYPE
37+
})
38+
public @interface Beta {}

common/src/main/java/dev/cel/common/values/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ java_library(
308308
":base_proto_message_value_provider",
309309
":cel_value",
310310
":proto_message_lite_value",
311+
"//common/annotations",
311312
"//common/internal:cel_lite_descriptor_pool",
312313
"//common/internal:default_lite_descriptor_pool",
313314
"//common/values:base_proto_cel_value_converter",
@@ -327,6 +328,7 @@ cel_android_library(
327328
":base_proto_message_value_provider_android",
328329
":cel_value_android",
329330
":proto_message_lite_value_android",
331+
"//common/annotations",
330332
"//common/internal:cel_lite_descriptor_pool_android",
331333
"//common/internal:default_lite_descriptor_pool_android",
332334
"//common/values:base_proto_cel_value_converter_android",

common/src/main/java/dev/cel/common/values/ProtoMessageLiteValueProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.google.common.collect.ImmutableSet;
1818
import com.google.errorprone.annotations.Immutable;
1919
import com.google.protobuf.MessageLite;
20+
import dev.cel.common.annotations.Beta;
2021
import dev.cel.common.internal.CelLiteDescriptorPool;
2122
import dev.cel.common.internal.DefaultLiteDescriptorPool;
2223
import dev.cel.protobuf.CelLiteDescriptor;
@@ -30,6 +31,7 @@
3031
* fully qualified name and its fields to populate.
3132
*/
3233
@Immutable
34+
@Beta
3335
public class ProtoMessageLiteValueProvider extends BaseProtoMessageValueProvider {
3436
private final CelLiteDescriptorPool descriptorPool;
3537
private final ProtoLiteCelValueConverter protoLiteCelValueConverter;

policy/src/main/java/dev/cel/policy/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package(
44
default_applicable_licenses = ["//:license"],
55
default_visibility = [
66
"//policy:__pkg__",
7+
"//publish:__pkg__",
78
],
89
)
910

protobuf/src/main/java/dev/cel/protobuf/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ load("@rules_java//java:defs.bzl", "java_binary", "java_library")
22

33
package(
44
default_applicable_licenses = ["//:license"],
5-
default_visibility = ["//protobuf:__pkg__"],
5+
default_visibility = [
6+
"//protobuf:__pkg__",
7+
"//publish:__pkg__",
8+
],
69
)
710

811
java_binary(

0 commit comments

Comments
 (0)