mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
The Dag processor runs a native Java Dag's JAR on every re-parse, and the worker runs the same JAR for each task. So a JAR can build its Dags from a file in the Dag bundle, and swapping only that file should change the live Dags with no rebuild. The go_sdk e2e test covers this for Go, but nothing covered it for Java.
52 lines
1.5 KiB
Groovy
52 lines
1.5 KiB
Groovy
/*
|
|
* 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.
|
|
*/
|
|
|
|
plugins {
|
|
id("org.apache.airflow.sdk") version "${projectVersion}"
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
annotationProcessor("org.apache.airflow:airflow-sdk-processor:${projectVersion}")
|
|
implementation("org.apache.airflow:airflow-sdk:${projectVersion}")
|
|
implementation("org.apache.airflow:airflow-sdk-jpl:${projectVersion}")
|
|
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.22.2")
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(11))
|
|
}
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java.srcDir("src/java")
|
|
}
|
|
}
|
|
|
|
airflowBundle {
|
|
mainClass = "org.apache.airflow.e2e.NativeBundleBuilder"
|
|
}
|