[poc] Fix repository and add compatibility
[flink-connectors.git] / build.gradle.kts
index cce5ba808a5be8369bfd42835e548e16eeca8637..c390270a32d2746abc9a43b6530d1cdb91319d39 100644 (file)
@@ -5,20 +5,30 @@ 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) {
+//if (!gradle.startParameter.isOffline && isCiServer) {
     configure<com.gradle.scan.plugin.BuildScanExtension> {
         termsOfServiceUrl = "https://gradle.com/terms-of-service"
         termsOfServiceAgree = "yes"
     }
-}
-
-group = "org.apache.flink.connectors"
-version = "1.0.0-SNAPSHOT"
-
-repositories {
-    mavenCentral()
-}
+//}
 
 configure<com.diffplug.gradle.spotless.SpotlessExtension> {
     java {
@@ -26,15 +36,10 @@ configure<com.diffplug.gradle.spotless.SpotlessExtension> {
     }
 }
 
-subprojects {
-    apply(plugin = "java-library")
-
-    java {
-        toolchain {
-            languageVersion.set(JavaLanguageVersion.of(8))
-        }
-    }
+configure<CheckstyleExtension> {
+}
 
+subprojects {
     dependencies {
         testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
         testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")