buildscript { repositories { mavenLocal() maven { url 'https://mirrors.huaweicloud.com/repository/maven' } jcenter() mavenCentral() google() maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' } } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0' classpath "org.jetbrains.kotlin:kotlin-serialization:1.4-M1" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4-M1" classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' // don't use any other. } } try { def keyProps = new Properties() def keyFile = file("local.properties") if (keyFile.exists()) keyFile.withInputStream { keyProps.load(it) } if (!keyProps.getProperty("sdk.dir", "").isEmpty()) { project.ext.set("isAndroidSDKAvailable", true) } else { project.ext.set("isAndroidSDKAvailable", false) } } catch (Exception ignored) { } allprojects { group = "net.mamoe" repositories { mavenLocal() maven { url "https://mirrors.huaweicloud.com/repository/maven" } jcenter() mavenCentral() google() maven { url "https://dl.bintray.com/kotlin/kotlin-eap" } maven { url "https://dl.bintray.com/kotlin/kotlin-dev" } } }