Skip to content

Commit 0b276f9

Browse files
committed
fix: fixed publish meta
1 parent 80134ec commit 0b276f9

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

build.gradle.kts

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ version = project.findProperty("version") ?: defaultVersion
2929

3030
val buildType = project.findProperty("buildType") as String? ?: "alpha"
3131
val timeStamp: String by project
32-
val buildDir by extra { file("${rootProject.layout.buildDirectory.get()}/libs") }
32+
// Custom directory for distribution JARs (separate from build/libs which is used for publishing)
33+
val distDir by extra { file("${rootProject.layout.buildDirectory.get()}/dist") }
3334
val defaultJarEnabled: String? by project
3435

3536
repositories {
@@ -96,18 +97,22 @@ tasks {
9697
dependsOn(shadowJar)
9798

9899
doLast {
99-
if (shadowJar.get().archiveFile.get().asFile.parentFile.absolutePath != buildDir.absolutePath) {
100-
copy {
101-
from(shadowJar.get().archiveFile.get().asFile.absolutePath)
102-
into(buildDir)
103-
}
100+
// Create distribution directory
101+
distDir.mkdirs()
102+
103+
// Copy only shadow JAR to distribution directory
104+
copy {
105+
from(shadowJar.get().archiveFile.get().asFile.absolutePath)
106+
into(distDir)
104107
}
108+
109+
println("Distribution JAR created at: ${distDir}/${shadowJar.get().archiveFileName.get()}")
105110
}
106111
}
107112

108113
build {
109114
dependsOn("copyJar")
110-
// Ensure standard jar is built for Maven publishing
115+
// Ensure standard jar is built for Maven publishing (stays in build/libs)
111116
dependsOn(jar)
112117
}
113118

@@ -199,9 +204,9 @@ publishing {
199204

200205
pom {
201206
name.set("Parsek")
202-
description.set("A lightweight, modular framework for building RESTful APIs with Kotlin and Vert.x")
203-
url.set("https://github.com/Statucorp/parsek-core")
204-
inceptionYear.set("2024")
207+
description.set("Open-source modular backend in Kotlin")
208+
url.set("https://github.com/ParsekDev/parsek")
209+
inceptionYear.set("2025")
205210

206211
licenses {
207212
license {
@@ -212,16 +217,16 @@ publishing {
212217

213218
developers {
214219
developer {
215-
id.set(" StatuCorp")
216-
name.set("Statu Corporation")
220+
id.set("Statu")
221+
name.set("Statu")
217222
email.set("[email protected]")
218223
}
219224
}
220225

221226
scm {
222-
connection.set("scm:git:git://github.com/Statucorp/parsek-core.git")
223-
developerConnection.set("scm:git:ssh://github.com/Statucorp/parsek-core.git")
224-
url.set("https://github.com/Statucorp/parsek-core")
227+
connection.set("scm:git:git://github.com/ParsekDev/parsek.git")
228+
developerConnection.set("scm:git:ssh://github.com/ParsekDev/parsek.git")
229+
url.set("https://github.com/ParsekDev/parsek")
225230
}
226231
}
227232
}
@@ -248,13 +253,13 @@ signing {
248253
// JReleaser configuration
249254
jreleaser {
250255
project {
251-
description.set("A lightweight, modular framework for building RESTful APIs with Kotlin and Vert.x")
252-
authors.add("StatuCorp")
256+
description.set("Open-source modular backend in Kotlin")
257+
authors.add("Statu")
253258
license.set("MIT")
254259
links {
255-
homepage.set("https://github.com/Statucorp/parsek-core")
260+
homepage.set("https://github.com/ParsekDev/parsek")
256261
}
257-
inceptionYear.set("2024")
262+
inceptionYear.set("2025")
258263
}
259264

260265
// Configure GitHub release provider (required by JReleaser even for deploy-only)

0 commit comments

Comments
 (0)