Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 31 additions & 19 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ kotlin {
jvmToolchain(17)
}

val projectWebsite: String by project
val license: String by project
val licenseLink: String by project
val namespace: String by project

mavenPublishing {

Expand All @@ -49,21 +47,47 @@ mavenPublishing {
signAllPublications()

coordinates(
groupId = group as String,
artifactId = rootProject.name,
groupId = namespace,
artifactId = rootProject.name.lowercase(),
version = property("version") as String
)

pom {
val projectWebsite: String by project

name = rootProject.name
url = projectWebsite

licenses {
val license: String by project
val licenseLink: String by project

license {
name = license
url = licenseLink
}
}

developers {
val developerName: String by project
val githubProfile: String by project

developer {
id = developerName
name = developerName
url = githubProfile
}
}

scm {
val scmUrl: String by project
val scmConnection: String by project
val scmDeveloperConnection: String by project

url = scmUrl
connection = scmConnection
developerConnection = scmDeveloperConnection
}
}
}

Expand All @@ -74,21 +98,9 @@ publishing {
create<MavenPublication>("Compositor") {
from(components["java"])

groupId = group.toString()
artifactId = rootProject.name
groupId = namespace
artifactId = rootProject.name.lowercase()
version = property("version") as String

pom {
name = rootProject.name
url = projectWebsite

licenses {
license {
name = license
url = licenseLink
}
}
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ kotlin.code.style=official
projectWebsite=https://github.com/AtriusX/Compositor
license=MIT License
licenseLink=https://github.com/AtriusX/Compositor/blob/main/LICENSE
namespace=io.github.atriusx
developerName=Atrius
githubProfile=https://github.com/AtriusX
scmUrl=https://github.com/AtriusX/Compositor
scmConnection=scm:git:git://github.com/AtriusX/Compositor.git
scmDeveloperConnection=scm:git:ssh://git@github.com/AtriusX/Compositor

# x-release-please-start-version
version=0.1.1
# x-release-please-end