jason810496 commented on code in PR #71151:
URL: https://github.com/apache/airflow/pull/71151#discussion_r3725679105


##########
java-sdk/sdk/src/main/kotlin/org/apache/airflow/sdk/conformance/Capabilities.kt:
##########
@@ -0,0 +1,116 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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 org.apache.airflow.sdk.conformance
+
+import kotlinx.serialization.SerialName
+import kotlinx.serialization.Serializable
+import kotlinx.serialization.encodeToString
+import kotlinx.serialization.json.Json
+
+// This model exists only to emit the build-time manifest, so it is 
deliberately `internal`: it is
+// not part of the SDK's published surface, and keeping it out means changing 
the manifest schema
+// never becomes a source/binary compatibility concern for SDK users.
+
+/** Support for a single Language SDK conformance dimension. */
+@Serializable
+internal data class CapabilityEntry(
+  val supported: Boolean,
+  val since: String? = null,
+  val note: String = "",
+)
+
+/** The machine-readable capability manifest serialised to 
java-sdk/generated/lang-sdk/capabilities.json. */
+@Serializable
+internal data class CapabilityManifest(
+  val sdk: String,
+  @SerialName("supervisor_schema_version") val supervisorSchemaVersion: String,
+  @SerialName("min_airflow_version") val minAirflowVersion: String,
+  val states: Map<String, CapabilityEntry>,
+  val capabilities: Map<String, CapabilityEntry>,
+)
+
+private const val MIN_AIRFLOW_VERSION = "3.3"
+
+// Keep in sync with airflowSupervisorSchemaVersion in 
java-sdk/gradle.properties.
+private const val SUPERVISOR_SCHEMA_VERSION = "2026-06-16"
+
+private fun yes(note: String = ""): CapabilityEntry = 
CapabilityEntry(supported = true, since = MIN_AIRFLOW_VERSION, note = note)

Review Comment:
   Applied in c8d92441fc , thanks,



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to