[poc] Fix repository and add compatibility poc
authorArvid Heise <arvid@ververica.com>
Wed, 17 Nov 2021 14:31:22 +0000 (15:31 +0100)
committerArvid Heise <arvid@ververica.com>
Wed, 17 Nov 2021 14:31:22 +0000 (15:31 +0100)
build.gradle.kts
buildSrc/build.gradle.kts
buildSrc/src/main/kotlin/Compatibility.kt
kafka/build.gradle.kts

index 044fd5b174935b35f46a78f837cf88a54d59f215..c390270a32d2746abc9a43b6530d1cdb91319d39 100644 (file)
@@ -5,6 +5,23 @@ plugins {
     checkstyle
 }
 
+group = "org.apache.flink.connectors"
+version = "1.0.0-SNAPSHOT"
+
+allprojects {
+    apply(plugin = "java-library")
+
+    java {
+        toolchain {
+            languageVersion.set(JavaLanguageVersion.of(8))
+        }
+    }
+
+    repositories {
+        mavenCentral()
+    }
+}
+
 val isCiServer = System.getenv().containsKey("CI")
 //if (!gradle.startParameter.isOffline && isCiServer) {
     configure<com.gradle.scan.plugin.BuildScanExtension> {
@@ -13,13 +30,6 @@ val isCiServer = System.getenv().containsKey("CI")
     }
 //}
 
-group = "org.apache.flink.connectors"
-version = "1.0.0-SNAPSHOT"
-
-repositories {
-    mavenCentral()
-}
-
 configure<com.diffplug.gradle.spotless.SpotlessExtension> {
     java {
         googleJavaFormat("1.7").aosp()
@@ -30,14 +40,6 @@ configure<CheckstyleExtension> {
 }
 
 subprojects {
-    apply(plugin = "java-library")
-
-    java {
-        toolchain {
-            languageVersion.set(JavaLanguageVersion.of(8))
-        }
-    }
-
     dependencies {
         testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
         testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
index b0b5e2b2774e78d45e76a4d5cbccd4c1c9aa8df7..79550464f891be449812315ae9a94af68a5aaae8 100644 (file)
@@ -1,5 +1,10 @@
 plugins {
     `java-library`
+    `kotlin-dsl`
+}
+
+repositories {
+    mavenCentral()
 }
 
 version = "1.0.0-SNAPSHOT"
index a9f349a2d1dde35f5dc16e316f8aca46b720bb09..53599574be7393b28e170146671cc26b76e23422 100644 (file)
@@ -9,6 +9,7 @@ enum class FlinkVersion {
  */
 fun Project.minimumFlinkVersion(version: FlinkVersion): Unit {
     // TODO:
+    this.setProperty("min_version", version.name)
 }
 
 fun Project.maximumFlinkVersion(version: FlinkVersion): Unit {
index 03732e087d9277a805ceb69414458cfe0f460c10..99cc5b1c5798ddf7c21c2bbc31ba9d46abf8cea3 100644 (file)
@@ -1,6 +1,6 @@
 version = "1.2.2-SNAPSHOT"
 
-//compatibleTo(FlinkVersion.FLINK_1_12, FlinkVersion.FLINK_1_13)
+minimumFlinkVersion(FlinkVersion.FLINK_1_12)
 
 repositories {
     // maven(url = "http://confluent")