-
Notifications
You must be signed in to change notification settings - Fork 2
/
android-sample_build.gradle
34 lines (30 loc) · 1.23 KB
/
android-sample_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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.21"
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.sonatype.gradle.plugins:scan-gradle-plugin:2.0.1"
}
}
apply plugin: "org.sonatype.gradle.plugins.scan"
/* Optional: default cache directory varies depending of the OS (user data), this can be done to set a specific path which could be useful for CI
ossIndexAudit {
cacheDirectory = "${System.getProperty('user.home')}/.ossIndexCache"
} */
nexusIQScan {
username = 'yourUsername' // project['yourUsernameProperty'] or System.getenv('yourUsernameProperty') can be used to get sensitive data from project properties or environment variables
password = 'yourPassword' // project['yourPasswordProperty'] or System.getenv('yourPasswordProperty') can be used to get sensitive data from project properties or environment variables
serverUrl = 'http://your-host:8070'
applicationId = 'yourApp'
}
allprojects {
repositories {
google()
mavenCentral()
}
}