forked from RiV-chain/Grease
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
98 lines (84 loc) · 2.6 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
98 lines (84 loc) · 2.6 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
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
88
89
90
91
92
93
94
95
96
97
98
@file:Suppress("UnstableApiUsage")
plugins {
`jvm-test-suite`
`kotlin-dsl`
alias(libs.plugins.publisher)
}
group = "io.deepmedia.tools"
version = "0.3.7"
testing {
suites {
register<JvmTestSuite>("functionalTest") {
useJUnit()
dependencies {
implementation(gradleTestKit())
implementation(project.dependencies.kotlin("test") as String)
implementation(project.dependencies.kotlin("test-junit") as String)
}
}
}
}
gradlePlugin {
plugins {
create("grease") {
id = "io.deepmedia.tools.grease"
implementationClass = "io.deepmedia.tools.grease.GreasePlugin"
}
}
testSourceSets(sourceSets["functionalTest"])
}
dependencies {
implementation(libs.asm.commons)
implementation(libs.gradle.shadow)
implementation(libs.bundles.gradle.android)
implementation(libs.kotlinx.metadata.jvm)
implementation(libs.apache.ant)
}
deployer {
content {
gradlePluginComponents {
kotlinSources()
emptyDocs()
}
}
projectInfo {
description = "Fat AARs for Android, to distribute multiple library modules in a single file with no dependencies, with relocation support."
url = "https://github.com/deepmedia/Grease"
scm.fromGithub("deepmedia", "Grease")
license(apache2)
}
signing {
key = secret("SIGNING_KEY")
password = secret("SIGNING_PASSWORD")
}
// use "deployLocal" to deploy to local maven repository
localSpec {
directory.set(rootProject.layout.buildDirectory.get().dir("inspect"))
signing {
key = absent()
password = absent()
}
}
// use "deployCentralPortal" to deploy to central portal
centralPortalSpec {
auth.user.set(secret("SONATYPE_USER"))
auth.password.set(secret("SONATYPE_PASSWORD"))
}
// use "deployNexusSnapshot" to deploy to sonatype snapshots repo
nexusSpec("snapshot") {
auth.user = secret("SONATYPE_USER")
auth.password = secret("SONATYPE_PASSWORD")
repositoryUrl = "https://central.sonatype.com/repository/maven-snapshots/"
release.version = "latest-SNAPSHOT"
}
// use "deployGithub" to deploy to github packages
githubSpec {
repository = "Grease"
owner = "deepmedia"
auth {
user = secret("GHUB_USER")
token = secret("GHUB_PERSONAL_ACCESS_TOKEN")
}
}
}