diff --git a/hoptimator-operator-core/build.gradle b/hoptimator-operator-core/build.gradle new file mode 100644 index 0000000..f6a1f72 --- /dev/null +++ b/hoptimator-operator-core/build.gradle @@ -0,0 +1,51 @@ +plugins { + id 'java-library' + id 'idea' + id 'maven-publish' +} + +dependencies { + implementation project(':hoptimator-planner') + implementation project(':hoptimator-catalog') + implementation project(':models') + + implementation libs.calciteCore + implementation libs.kubernetesClient + implementation libs.kubernetesExtendedClient + implementation libs.slf4jLog4j + + testImplementation libs.junit + testImplementation libs.assertj +} + +publishing { + repositories { + maven { + url = "https://maven.pkg.github.com/linkedin/Hoptimator" + credentials { + username = System.getenv('GITHUB_ACTOR') + password = System.getenv('GITHUB_TOKEN') + } + } + } + publications { + maven(MavenPublication) { + groupId = 'com.linkedin.hoptimator' + artifactId = 'hoptimator-operator-core' + version = System.getenv('GITHUB_REF_NAME') + from components.java + } + } +} + +tasks.withType(JavaCompile) { + options.compilerArgs << '-Xlint:deprecation' + options.compilerArgs << '-Xlint:unchecked' +} + +idea { + module { + downloadJavadoc = true + downloadSources = true + } +} diff --git a/hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/ConfigAssembler.java b/hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/ConfigAssembler.java similarity index 100% rename from hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/ConfigAssembler.java rename to hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/ConfigAssembler.java diff --git a/hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/Operator.java b/hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/Operator.java similarity index 100% rename from hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/Operator.java rename to hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/Operator.java diff --git a/hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/RequestEnvironment.java b/hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/RequestEnvironment.java similarity index 100% rename from hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/RequestEnvironment.java rename to hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/RequestEnvironment.java diff --git a/hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/subscription/SubscriptionReconciler.java b/hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/subscription/SubscriptionReconciler.java similarity index 100% rename from hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/subscription/SubscriptionReconciler.java rename to hoptimator-operator-core/src/main/java/com/linkedin/hoptimator/operator/subscription/SubscriptionReconciler.java diff --git a/hoptimator-operator/build.gradle b/hoptimator-operator/build.gradle index 7522eed..3f64479 100644 --- a/hoptimator-operator/build.gradle +++ b/hoptimator-operator/build.gradle @@ -8,6 +8,7 @@ plugins { dependencies { implementation project(':hoptimator-planner') implementation project(':hoptimator-catalog') + implementation project(':hoptimator-operator-core') implementation project(':hoptimator-kafka-adapter') implementation project(':hoptimator-mysql-adapter') implementation project(':models') diff --git a/settings.gradle b/settings.gradle index bcc5148..ef620d1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,6 +7,7 @@ include 'hoptimator-flink-iterator' include 'hoptimator-flink-runner' include 'hoptimator-kafka-adapter' include 'hoptimator-mysql-adapter' +include 'hoptimator-operator-core' include 'hoptimator-operator' include 'hoptimator-planner' include 'models'