Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import dependencies.Dep
apply from: file('gradle/dependencyGraph.gradle')

buildscript {
ext {
isCi = System.getenv("CI") == "true"
}
repositories {
google()
if (!isCi) { maven { url "https://maven-central-asia.storage-download.googleapis.com/repos/central/data/" } }
jcenter()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
Expand All @@ -28,6 +32,7 @@ buildscript {
allprojects {
repositories {
google()
if (!isCi) { maven { url "https://maven-central-asia.storage-download.googleapis.com/repos/central/data/" } }
jcenter()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
Expand Down Expand Up @@ -57,7 +62,7 @@ allprojects {
task ktlint(type: JavaExec, group: "verification") {
def parameters = ["--android", '--editorconfig', "${rootProject.projectDir}/.editorconfig", "--reporter=checkstyle,output=${buildDir}/ktlint/checkstyle.xml"]

if (System.getenv("CI") != "true") {
if (!isCi) {
parameters += "--reporter=html,artifact=me.cassiano:ktlint-html-reporter:0.2.0,output=${buildDir}/ktlint/checkstyle.html"
}

Expand Down
4 changes: 2 additions & 2 deletions frontend/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ android {
lintOptions {
lintConfig file("${project.projectDir}/lint.xml")

xmlReport System.getenv("CI") == "true"
htmlReport System.getenv("CI") != "true"
xmlReport isCi
htmlReport !isCi

xmlOutput file("lint-results.xml")
htmlOutput file("lint-results.html")
Expand Down
1 change: 1 addition & 0 deletions frontendcomponent/androidcomponent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies {
androidTestImplementation Dep.Test.espressoCore
}
repositories {
if (!isCi) { maven { url "https://maven-central-asia.storage-download.googleapis.com/repos/central/data/" } }
mavenCentral()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
Expand Down
1 change: 1 addition & 0 deletions frontendcomponent/androidtestcomponent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies {
}
}
repositories {
if (!isCi) { maven { url "https://maven-central-asia.storage-download.googleapis.com/repos/central/data/" } }
mavenCentral()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
Expand Down