-
Notifications
You must be signed in to change notification settings - Fork 31
/
build.gradle
87 lines (75 loc) · 2.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
apply from: './scripts/secrets.gradle'
apply plugin: "detekt-setup"
apply plugin: "org.sonarqube"
buildscript {
ext {
// App version
versionName = '3.7.3'
versionCode = 204
// SDK and tools
compileSdkVersion = 34
minSdkVersion = 26
targetSdkVersion = 34
composeCompilerVersion = '1.5.14'
withoutBasic = { exclude group: 'jp.co.soramitsu.xnetworking', module: 'basic' }
withoutJna = { exclude group: 'net.java.dev.jna' }
withoutJavaWS = { exclude module: 'java-websocket-lib' }
withoutAndroidFoundation = { exclude module: 'android-foundation' }
}
repositories {
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://maven.google.com' }
}
dependencies {
classpath libs.gradleplugins.android
classpath libs.gradleplugins.kotlin
classpath libs.kotlin.serialization
classpath libs.google.services
classpath libs.firebase.appdistribution.gradle
classpath libs.play.publisher
classpath libs.gradleplugins.hiltAndroid
classpath libs.org.jacoco.core
classpath libs.sonarqube.gradle.plugin
}
configurations.configureEach {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
}
allprojects {
repositories {
google()
mavenLocal()
maven { url "https://nexus.iroha.tech/repository/maven-soramitsu/" }
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url = readSecret("PAY_WINGS_REPOSITORY_URL")
credentials {
username = readSecret("PAY_WINGS_USERNAME")
password = readSecret("PAY_WINGS_PASSWORD")
}
}
}
configurations {
cleanedAnnotations
implementation.exclude group: 'com.intellij' , module:'annotations'
}
configurations.configureEach {
resolutionStrategy {
// add dependency substitution rules
dependencySubstitution {
substitute module('org.bouncycastle:bcprov-jdk15on') using module('org.bouncycastle:bcprov-jdk18on:1.78')
}
}
}
}
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}
tasks.register('runTest', GradleBuild) {
tasks = ['clean', 'detektAll', 'runModuleTests', 'jacocoTestReport']
}