forked from anddea/revanced-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (48 loc) · 1.26 KB
/
build.gradle.kts
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
group = "app.revanced"
patches {
about {
name = "ReVanced Patches"
description = "Patches for ReVanced"
source = "[email protected]:revanced/revanced-patches.git"
author = "ReVanced"
contact = "[email protected]"
website = "https://revanced.app"
license = "GNU General Public License v3.0"
}
}
dependencies {
// Used by JsonGenerator.
implementation(libs.gson)
}
tasks {
jar {
exclude("app/revanced/generator")
}
register<JavaExec>("generatePatchesFiles") {
description = "Generate patches files"
dependsOn(build)
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("app.revanced.generator.MainKt")
}
// Used by gradle-semantic-release-plugin.
publish {
dependsOn("generatePatchesFiles")
}
}
kotlin {
compilerOptions {
freeCompilerArgs = listOf("-Xcontext-receivers")
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/anddea/revanced-patches")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}