833d2f406b
Following steps in https://github.com/vanniktech/gradle-maven-publish-plugin#where-to-upload-to for pointing to the new host.
68 lines
2 KiB
Groovy
68 lines
2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
google()
|
|
}
|
|
|
|
apply from: 'buildsystem/dependencies.gradle'
|
|
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:${versions.androidGradlePlugin}"
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:${versions.kotlin}"
|
|
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:${versions.binaryCompatibilityValidator}"
|
|
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokkaGradlePlugin}"
|
|
classpath "org.jlleitschuh.gradle:ktlint-gradle:${versions.ktlintGradle}"
|
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:${versions.spotlessGradlePlugin}"
|
|
classpath "org.jacoco:org.jacoco.core:${versions.jacocoGradlePlugin}"
|
|
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:${versions.atomicFuPlugin}"
|
|
classpath "com.vanniktech:gradle-maven-publish-plugin:${versions.mavenPublishPlugin}"
|
|
}
|
|
}
|
|
|
|
apply from: 'buildsystem/dependencies.gradle'
|
|
|
|
apply plugin: 'binary-compatibility-validator'
|
|
|
|
apiValidation {
|
|
ignoredProjects += ["app"]
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
jcenter()
|
|
}
|
|
|
|
apply plugin: 'org.jlleitschuh.gradle.ktlint'
|
|
ktlint {
|
|
version = versions.ktlint
|
|
disabledRules = ["import-ordering"]
|
|
}
|
|
|
|
|
|
// Workaround to prevent Gradle from stealing focus from other apps during tests run/etc.
|
|
// https://gist.github.com/artem-zinnatullin/4c250e04636e25797165
|
|
tasks.withType(JavaForkOptions) {
|
|
jvmArgs '-Djava.awt.headless=true'
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'com.diffplug.gradle.spotless'
|
|
spotless {
|
|
kotlin {
|
|
target 'src/**/*.kt'
|
|
}
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
plugins.withId("com.vanniktech.maven.publish") {
|
|
mavenPublish {
|
|
sonatypeHost = "S01"
|
|
}
|
|
}
|
|
}
|