-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (45 loc) · 1.76 KB
/
Copy pathbuild.gradle
File metadata and controls
52 lines (45 loc) · 1.76 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
buildscript {
apply from: "gradle/dependencies.gradle"
repositories {
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.1'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:${kotlinVersion}"
}
}
apply plugin: 'io.github.gradle-nexus.publish-plugin'
nexusPublishing {
packageGroup = project.findProperty("PROJ_GROUP_MAVEN_CENTRAL") ?: "io.github.carguo"
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 = System.getenv("MAVEN_CENTRAL_USERNAME") ?: project.findProperty("ossrhUsername")
password = System.getenv("MAVEN_CENTRAL_PASSWORD") ?: project.findProperty("ossrhPassword")
}
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://jitpack.io" }
maven {
url 'https://maven.pkg.github.com/CarGuo/GSYVideoPlayer'
credentials {
username = project.findProperty('githubReadUser') ?: System.getenv('GITHUB_READ_USER') ?: 'carsmallguo'
password = project.findProperty('githubReadToken') ?: System.getenv('GITHUB_READ_TOKEN') ?: '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'
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// 引入权限分析脚本
apply from: "gradle/permissions.gradle"