Skip to content

Commit 357f91c

Browse files
l46kokcopybara-github
authored andcommitted
Prepare for 0.10.0 release
Fixes #678 PiperOrigin-RevId: 775863375
1 parent 6b8e813 commit 357f91c

File tree

16 files changed

+115
-17
lines changed

16 files changed

+115
-17
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,17 @@ register_toolchains(
222222

223223
### googleapis setup
224224

225-
# as of 12/08/2022
225+
# as of 06/06/2025
226226
http_archive(
227227
name = "com_google_googleapis",
228-
sha256 = "cd5e8b816612cb6659fca62137ad0206747c4605dc055efcb361e7d3b4e9cedd",
229-
strip_prefix = "googleapis-d2835e84647d7477511f7ae48e36d4cfe7b04a10",
228+
sha256 = "228c134e606a10d9103ff2b22622989bbf13cc2a54ff626ff9ef6c1c7713e3b8",
229+
strip_prefix = "googleapis-1804a603281707a1f0e6fff27851cae115ac3c8b",
230230
urls = [
231-
"https://github.com/googleapis/googleapis/archive/d2835e84647d7477511f7ae48e36d4cfe7b04a10.tar.gz",
231+
"https://github.com/googleapis/googleapis/archive/1804a603281707a1f0e6fff27851cae115ac3c8b.tar.gz",
232232
],
233233
)
234234

235+
235236
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
236237

237238
switched_rules_by_language(

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)