/
build.gradle
87 lines (78 loc) · 2.51 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.8.20'
ext.appsync_version = '3.4.0'
ext.aws_version = '2.72.0'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "org.jmailen.gradle:kotlinter-gradle:3.16.0"
classpath "org.owasp:dependency-check-gradle:8.2.1"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.0.0.2929"
classpath "com.cookpad.android.licensetools:license-tools-plugin:1.7.0"
}
}
plugins {
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
}
ext {
projectGroup = 'com.sudoplatform'
}
if(project.file("${rootProject.projectDir}/util/internal-repo.gradle").exists()) {
apply from: "${rootProject.projectDir}/util/internal-repo.gradle"
}
else {
ext["internalRepoUsername"] = ""
ext["internalRepoPassword"] = ""
ext["internalSnapshotRepoUrl"] = ""
ext["internalSnapshotRepoName"] = ""
ext["internalReleaseRepoUrl"] = ""
ext["internalReleaseRepoName"] = ""
ext["sonatypeStagingProfileId"] = ""
}
if (project.findProperty("tag") && sonatypeStagingProfileId) {
nexusPublishing {
repositories {
sonatype {
stagingProfileId = sonatypeStagingProfileId
username = nexusUsername
password = nexusPassword
}
}
}
}
allprojects {
repositories {
mavenLocal()
google()
mavenCentral()
if (internalRepoUsername?.trim()) {
maven {
name = internalSnapshotRepoName
url = internalSnapshotRepoUrl
credentials {
username = internalRepoUsername
password = internalRepoPassword
}
}
maven {
name = internalReleaseRepoName
url = internalReleaseRepoUrl
credentials {
username = internalRepoUsername
password = internalRepoPassword
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}