-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
70 lines (64 loc) · 2 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
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.test.logger) apply false
}
configure(subprojects) {
apply(plugin = "java-library")
apply(plugin = "com.adarshr.test-logger")
apply(plugin = "maven-publish")
group = "com.faforever.commons"
repositories {
mavenCentral()
}
tasks.withType<Test> {
useJUnitPlatform()
}
configure<PublishingExtension> {
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set(project.properties["project_display_name"].toString())
description.set(project.properties["project_description"].toString())
url.set(project.properties["project_website"].toString())
issueManagement {
system.set("GitHub")
url.set(project.properties["project_issues"].toString())
}
scm {
url.set(project.properties["project_website"].toString())
connection.set("scm:git:${project.properties["project_vcs"].toString()}")
developerConnection.set("scm:git:${project.properties["project_vcs_git"].toString()}")
}
licenses {
license {
name.set("The MIT License (MIT)")
url.set("http://www.opensource.org/licenses/mit-license.php")
distribution.set("repo")
}
}
developers {
developer {
id.set("Brutus5000")
name.set("Brutus5000")
organization {
name.set("FAForever")
url.set("https://github.com/FAForever")
}
}
}
}
}
}
repositories {
maven {
name = "MavenCentral"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.properties["sonatypeUsername"].toString()
password = project.properties["sonatypePassword"].toString()
}
}
}
}
}