Skip to content

Commit e0bc52f

Browse files
author
ahmetduruer
committed
feat: release test in mvn central
1 parent cde84df commit e0bc52f

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

build.gradle.kts

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ plugins {
1818
kotlin("jvm") version "2.0.21"
1919
kotlin("kapt") version "2.0.21"
2020
id("com.github.johnrengelman.shadow") version "8.1.1"
21+
id("com.vanniktech.maven.publish") version "0.34.0"
2122
application
2223
`maven-publish`
2324
signing
@@ -212,4 +213,39 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
212213
tasks.withType<JavaCompile> {
213214
sourceCompatibility = "1.8"
214215
targetCompatibility = "1.8"
215-
}
216+
}
217+
218+
mavenPublishing {
219+
publishToMavenCentral(automaticRelease = true)
220+
221+
signAllPublications()
222+
223+
coordinates("dev.parsek", "parsek", version as String?)
224+
225+
pom {
226+
name.set("Parsek")
227+
description.set("Open-source modular backend in Kotlin.")
228+
inceptionYear.set("2025")
229+
url.set("https://github.com/ParsekDev/parsek/")
230+
licenses {
231+
license {
232+
name.set("MIT")
233+
url.set("https://github.com/ParsekDev/parsek?tab=MIT-1-ov-file")
234+
distribution.set("https://github.com/ParsekDev/parsek?tab=MIT-1-ov-file")
235+
}
236+
}
237+
developers {
238+
developer {
239+
id.set("duruer")
240+
name.set("Ahmet Enes Duruer")
241+
url.set("https://github.com/duruer/")
242+
}
243+
}
244+
scm {
245+
url.set("https://github.com/ParsekDev/parsek/")
246+
connection.set("scm:git:git://github.com/ParsekDev/parsek.git")
247+
developerConnection.set("scm:git:ssh://[email protected]/ParsekDev/parsek.git")
248+
}
249+
}
250+
}
251+

0 commit comments

Comments
 (0)