Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (51 loc) · 1.78 KB
/
Copy pathbuild.gradle
File metadata and controls
59 lines (51 loc) · 1.78 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "2.0.21"
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.10.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jacoco:org.jacoco.core:0.8.12"
}
}
plugins {
id 'org.jetbrains.dokka' version '1.9.20'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}
nexusPublishing {
repositories {
sonatype{
nexusUrl.set(uri('https://ossrh-staging-api.central.sonatype.com/service/local/'))
snapshotRepositoryUrl.set(uri('https://central.sonatype.com/repository/maven-snapshots/'))
username.set(System.getenv("MAVEN_USERNAME"))
password.set(System.getenv("MAVEN_PASSWORD"))
}
}
}
apply plugin: 'io.github.gradle-nexus.publish-plugin'
subprojects {
apply plugin: 'org.jetbrains.dokka'
}
allprojects {
group = 'com.auth0.android'
repositories {
google()
mavenCentral()
}
// Patch vulnerable transitive deps to clear the reported CVEs. Pulled in by test
// tooling (netty-codec-http via AGP/grpc-netty, bcprov-jdk18on via Robolectric);
// not included in the published AAR.
configurations.configureEach {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'io.netty' && details.requested.name == 'netty-codec-http') {
details.useVersion '4.1.137.Final'
}
if (details.requested.group == 'org.bouncycastle' && details.requested.name == 'bcprov-jdk18on') {
details.useVersion '1.85'
}
}
}
}