Skip to content

Commit ab84c6e

Browse files
l46kokcopybara-github
authored andcommitted
Release version 0.15.0
PiperOrigin-RevId: 1007749400
1 parent 9f81d01 commit ab84c6e

5 files changed

Lines changed: 73 additions & 58 deletions

File tree

‎MODULE.bazel‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ module(
1717
)
1818

1919
bazel_dep(name = "bazel_skylib", version = "1.9.2")
20-
bazel_dep(name = "rules_jvm_external", version = "7.1")
21-
bazel_dep(name = "protobuf", version = "35.1", repo_name = "com_google_protobuf") # see https://github.com/bazelbuild/rules_android/issues/373
22-
bazel_dep(name = "googleapis", version = "0.0.0-20260728-b8486a2f", repo_name = "com_google_googleapis")
23-
bazel_dep(name = "rules_pkg", version = "1.2.0")
20+
bazel_dep(name = "rules_jvm_external", version = "7.2")
21+
bazel_dep(name = "protobuf", version = "36.2", repo_name = "com_google_protobuf")
22+
bazel_dep(name = "googleapis", version = "0.0.0-20261020-14a161a9", repo_name = "com_google_googleapis")
23+
bazel_dep(name = "rules_pkg", version = "1.3.0")
2424
bazel_dep(name = "rules_license", version = "1.0.0")
2525
bazel_dep(name = "rules_proto", version = "7.1.0")
26-
bazel_dep(name = "rules_java", version = "9.7.0")
26+
bazel_dep(name = "rules_java", version = "9.9.0")
2727
bazel_dep(name = "rules_android", version = "0.7.3")
2828
bazel_dep(name = "rules_shell", version = "0.8.0")
2929
bazel_dep(name = "googleapis-java", version = "1.1.5")
3030
bazel_dep(name = "cel-spec", version = "0.25.3", repo_name = "cel_spec")
31-
bazel_dep(name = "rules_go", version = "0.62.0")
31+
bazel_dep(name = "rules_go", version = "0.65.0")
3232

3333
# Required by cel-spec to satisfy gazelle transitive dependency
3434
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
35-
go_sdk.download(version = "1.26.5")
35+
go_sdk.download(version = "1.27.3")
3636

3737
switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules")
3838
switched_rules.use_languages(java = True)
@@ -42,15 +42,15 @@ maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
4242

4343
AUTO_VALUE_VERSION = "1.11.1"
4444

45-
GUAVA_VERSION = "33.6.0"
45+
GUAVA_VERSION = "33.7.2"
4646

47-
JLINE_VERSION = "3.30.16"
47+
JLINE_VERSION = "3.30.17"
4848

4949
TRUTH_VERSION = "1.4.5"
5050

51-
PROTOBUF_JAVA_VERSION = "4.35.1"
51+
PROTOBUF_JAVA_VERSION = "4.36.2"
5252

53-
CEL_VERSION = "0.14.0"
53+
CEL_VERSION = "0.15.0"
5454

5555
# Compile only artifacts
5656
[
@@ -62,7 +62,7 @@ CEL_VERSION = "0.14.0"
6262
)
6363
for group, artifact, version in [coord.split(":") for coord in [
6464
"com.google.code.findbugs:annotations:3.0.1",
65-
"com.google.errorprone:error_prone_annotations:2.50.0",
65+
"com.google.errorprone:error_prone_annotations:2.51.0",
6666
]]
6767
]
6868

@@ -76,8 +76,8 @@ CEL_VERSION = "0.14.0"
7676
)
7777
for group, artifact, version in [coord.split(":") for coord in [
7878
"org.mockito:mockito-core:4.11.0",
79-
"io.github.classgraph:classgraph:4.8.186",
80-
"com.google.testparameterinjector:test-parameter-injector:1.22",
79+
"io.github.classgraph:classgraph:4.8.199",
80+
"com.google.testparameterinjector:test-parameter-injector:1.25",
8181
"com.google.guava:guava-testlib:" + GUAVA_VERSION + "-jre",
8282
"com.google.truth.extensions:truth-java8-extension:" + TRUTH_VERSION,
8383
"com.google.truth.extensions:truth-proto-extension:" + TRUTH_VERSION,
@@ -98,12 +98,12 @@ maven.install(
9898
"com.google.re2j:re2j:1.8",
9999
"info.picocli:picocli:4.7.7",
100100
"org.antlr:antlr4-runtime:4.13.2",
101-
"org.freemarker:freemarker:2.3.34",
101+
"org.freemarker:freemarker:2.3.35",
102102
"org.jline:jline-reader:" + JLINE_VERSION,
103103
"org.jline:jline-terminal:" + JLINE_VERSION,
104-
"org.jspecify:jspecify:1.0.0",
105-
"org.threeten:threeten-extra:1.10.0",
106-
"org.yaml:snakeyaml:2.6",
104+
"org.jspecify:jspecify:1.0.1",
105+
"org.threeten:threeten-extra:1.11.0",
106+
"org.yaml:snakeyaml:2.7",
107107
"tools.aqua:z3-turnkey:4.14.1",
108108
],
109109
known_contributing_modules = ["protobuf"],

‎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.14.0</version>
58+
<version>0.15.0</version>
5959
</dependency>
6060
```
6161

6262
**Gradle**
6363

6464
```gradle
65-
implementation 'dev.cel:cel:0.14.0'
65+
implementation 'dev.cel:cel:0.15.0'
6666
```
6767

6868
Then run this example:

‎publish/cel_version.bzl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
"""Maven artifact version for CEL."""
15-
CEL_VERSION = "0.14.0"
15+
CEL_VERSION = "0.15.0"

‎publish/publish.sh‎

Lines changed: 47 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
ALL_TARGETS=("//publish:cel_common.publish" "//publish:cel.publish" "//publish:cel_compiler.publish" "//publish:cel_runtime.publish" "//publish:cel_v1alpha1.publish" "//publish:cel_protobuf.publish" "//publish:cel_runtime_android.publish" "//publish:cel_verifier.publish" "//publish:cel_verifier_cli.publish")
3030
JDK8_FLAGS="--java_language_version=8 --java_runtime_version=8"
3131

32-
function publish_maven_remote() {
32+
function publish_maven_snapshot() {
3333
maven_repo_url=$1
3434
# Credentials should be read from maven config (settings.xml) once it
3535
# is supported by bazelbuild:
3636
# https://github.com/bazelbuild/rules_jvm_external/issues/679
3737
read -p "maven_user: " maven_user
3838
read -s -p "maven_password: " maven_password
39+
echo ""
3940

40-
# Upload artifacts to staging repository
4141
for PUBLISH_TARGET in "${ALL_TARGETS[@]}"
4242
do
4343
bazel run --stamp \
@@ -46,37 +46,52 @@ function publish_maven_remote() {
4646
--define "maven_user=$maven_user" \
4747
--define "maven_password=$maven_password" \
4848
$PUBLISH_TARGET \
49-
$JDK8_FLAGS
49+
$JDK8_FLAGS || exit 1
5050
done
51+
}
5152

52-
# Begin creating a staging deployment in central maven
53-
auth_token=$(printf "%s:%s" "$maven_user" "$maven_password" | base64)
54-
repository_key=$(curl -s -X GET \
55-
-H "Authorization:Bearer $auth_token" \
56-
"https://ossrh-staging-api.central.sonatype.com/manual/search/repositories?ip=any&profile_id=dev.cel" | \
57-
jq -r '.repositories[] | select(.state=="open") | .key' | head -n 1)
53+
function publish_maven_release() {
54+
read -p "maven_user: " maven_user
55+
read -s -p "maven_password: " maven_password
5856
echo ""
59-
if [[ -n "$repository_key" ]]; then
60-
echo "Open repository key:"
61-
echo "$repository_key"
62-
63-
echo "Creating deployment..."
64-
post_response=$(curl -s -w "\n%{http_code}" -X POST \
65-
-H "Authorization: Bearer $auth_token" \
66-
"https://ossrh-staging-api.central.sonatype.com/manual/upload/repository/$repository_key")
67-
68-
http_code=$(tail -n1 <<< "$post_response")
69-
response_body=$(sed '$ d' <<< "$post_response")
70-
71-
echo "----------------------------------------"
72-
echo "Deployment API Response (HTTP Status: $http_code):"
73-
echo "$response_body"
74-
echo "----------------------------------------"
75-
echo ""
76-
echo "Proceed to https://central.sonatype.com/publishing/deployments to finalize publishing."
77-
else
78-
echo "No open repository was found. Likely an indication that artifacts were not uploaded."
79-
fi
57+
58+
staging_dir=$(mktemp -d)
59+
trap 'rm -rf "$staging_dir"' EXIT
60+
61+
# Stage and GPG-sign artifacts locally into a single directory tree
62+
for PUBLISH_TARGET in "${ALL_TARGETS[@]}"
63+
do
64+
bazel run --stamp \
65+
--define "maven_repo=file://$staging_dir" \
66+
--define gpg_sign=true \
67+
$PUBLISH_TARGET \
68+
$JDK8_FLAGS || exit 1
69+
done
70+
71+
# Central Portal bundle validation rejects maven-metadata.xml files
72+
find "$staging_dir" -name "maven-metadata.xml*" -delete
73+
74+
bundle_zip="$staging_dir/central-bundle.zip"
75+
(cd "$staging_dir" && zip -qr "$bundle_zip" dev)
76+
77+
# Upload the atomic bundle to Maven Central Portal
78+
auth_token=$(printf "%s:%s" "$maven_user" "$maven_password" | base64 | tr -d '\n')
79+
echo ""
80+
echo "Uploading deployment bundle to Maven Central Portal..."
81+
post_response=$(curl -s -w "\n%{http_code}" -X POST \
82+
-H "Authorization: Bearer $auth_token" \
83+
-F "bundle=@$bundle_zip" \
84+
"https://central.sonatype.com/api/v1/publisher/upload?publishingType=USER_MANAGED&name=dev.cel-$version")
85+
86+
http_code=$(tail -n1 <<< "$post_response")
87+
response_body=$(sed '$ d' <<< "$post_response")
88+
89+
echo "----------------------------------------"
90+
echo "Deployment API Response (HTTP Status: $http_code):"
91+
echo "$response_body"
92+
echo "----------------------------------------"
93+
echo ""
94+
echo "Proceed to https://central.sonatype.com/publishing/deployments to finalize publishing."
8095
}
8196

8297
version=$(<cel_version.bzl)
@@ -89,7 +104,7 @@ if [ "$flag" == "--snapshot" ] || [ "$flag" == "-s" ]; then
89104
exit 1;
90105
fi
91106
echo "Publishing a SNAPSHOT version: $version to remote Maven repository"
92-
publish_maven_remote "https://central.sonatype.com/repository/maven-snapshots/"
107+
publish_maven_snapshot "https://central.sonatype.com/repository/maven-snapshots/"
93108
elif [ "$flag" == "--release" ] || [ "$flag" == "-r" ]; then
94109
if [[ $version == *"-SNAPSHOT"* ]]; then
95110
echo "Unable to publish. Please remove -SNAPSHOT suffix from CEL Version"
@@ -100,7 +115,7 @@ elif [ "$flag" == "--release" ] || [ "$flag" == "-r" ]; then
100115
read -p "Proceed (Y/N)? " yn
101116
case $yn in
102117
[Yy]* )
103-
publish_maven_remote "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
118+
publish_maven_release
104119
break;;
105120
[Nn]* ) exit;;
106121
* ) echo "Please answer yes or no.";;

‎verifier/tools/README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ directly from Maven Central and invoke it with `java -jar`:
1414
<!-- disableFinding(LINE_OVER_80) -->
1515
```bash
1616
# Download the latest CLI JAR (Note: this is an uber-JAR)
17-
curl -LO https://repo1.maven.org/maven2/dev/cel/verifier-cli/0.14.0/verifier-cli-0.14.0.jar
17+
curl -LO https://repo1.maven.org/maven2/dev/cel/verifier-cli/0.15.0/verifier-cli-0.15.0.jar
1818

1919
# Launch interactive REPL shell
20-
java -jar verifier-cli-0.14.0.jar repl
20+
java -jar verifier-cli-0.15.0.jar repl
2121

2222
# Run a one-shot verification command
23-
java -jar verifier-cli-0.14.0.jar check-sat \
23+
java -jar verifier-cli-0.15.0.jar check-sat \
2424
--expr "role == 'editor' && port > 1024" \
2525
--var "role:string" \
2626
--var "port:int"
2727

2828
# Run with JSON output format for CI/CD integrations
29-
java -jar verifier-cli-0.14.0.jar check-sat \
29+
java -jar verifier-cli-0.15.0.jar check-sat \
3030
--expr "role == 'editor'" \
3131
--var "role:string" \
3232
--output_format=json
3333

3434
# Display help and available commands
35-
java -jar verifier-cli-0.14.0.jar --help
35+
java -jar verifier-cli-0.15.0.jar --help
3636
```
3737

3838
### Running via Bazel

0 commit comments

Comments
 (0)