-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (64 loc) · 1.97 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.8.21'
detekt_version = '1.23.1'
klint_plugin_version = '9.4.0'
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$klint_plugin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "$detekt_version"
id "com.diffplug.spotless" version "6.20.0"
}
allprojects {
repositories {
google()
jcenter()
maven {
name = "BRouter GitHubPackages"
url = uri("https://maven.pkg.github.com/abrensch/brouter")
credentials {
username = project.properties['GITHUB_USERNAME'] ?: ""
// need a package read token from https://github.com/settings/tokens
password = project.properties['GITHUB_TOKEN'] ?: ""
}
}
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
username = 'mapbox'
// need a download token https://account.mapbox.com
password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: ""
}
}
}
}
subprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
format 'misc', {
target '**/*.gradle'
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
kotlin {
target "**/*.kt"
//ktlint('0.33.0')
}
}
}