-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (51 loc) · 1.47 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import org.gradle.configurationcache.extensions.capitalized
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
plugins {
kotlin("jvm") version "1.9.22"
kotlin("plugin.serialization") version "1.9.22" apply false
id("co.uzzu.dotenv.gradle") version "4.0.0"
id("maven-publish")
}
repositories {
mavenCentral()
}
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "maven-publish")
group = "dev.h4kt.xposed"
version = "1.1.0"
java {
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(8)
}
afterEvaluate {
archivesName.set("xposed-$name")
}
publishing {
repositories {
maven {
name = "H4ktRepo"
url = uri("https://repo.h4kt.dev/releases")
authentication {
create<BasicAuthentication>("basic")
}
credentials {
username = env.H4KT_REPO_USERNAME.orNull() ?: System.getenv("H4KT_REPO_USERNAME")
password = env.H4KT_REPO_PASSWORD.orNull() ?: System.getenv("H4KT_REPO_PASSWORD")
}
}
}
publications {
register("Xposed${name.capitalized()}", MavenPublication::class) {
artifactId = "xposed-${project.name}"
from(components["java"])
}
}
}
}