-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
48 lines (41 loc) · 1.09 KB
/
build.gradle.kts
File metadata and controls
48 lines (41 loc) · 1.09 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
plugins {
alias(libs.plugins.jetbrains.kotlin.jvm) apply true
alias(libs.plugins.ktlint) apply true
id("maven-publish")
}
allprojects {
version = "0.1.0"
group = "io.github.resty-io"
plugins.apply("java-library")
plugins.apply("org.jlleitschuh.gradle.ktlint")
java {
withJavadocJar()
withSourcesJar()
}
ktlint {
verbose = true
outputToConsole = true
coloredOutput = false
}
}
publishing {
repositories {
maven("https://maven.pkg.github.com/resty-io/resty") {
name = "github"
credentials {
username = System.getenv("GPR_ACTOR")
password = System.getenv("GPR_TOKEN")
}
}
}
publications {
project.subprojects.forEach { project ->
publications.create<MavenPublication>(project.name) {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(project.components["java"])
}
}
}
}