Skip to content

Commit d68b6a6

Browse files
committed
add maven sync
1 parent d3206a7 commit d68b6a6

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build/
33
!gradle/wrapper/gradle-wrapper.jar
44
!**/src/main/**/build/
55
!**/src/test/**/build/
6+
gradle.properties
67

78
### IntelliJ IDEA ###
89
.idea/modules.xml

build.gradle.kts

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import com.vanniktech.maven.publish.SonatypeHost
2+
13
plugins {
24
kotlin("jvm") version "2.0.20"
5+
id("com.vanniktech.maven.publish") version "0.29.0"
36
}
47

58
group = "com.kdroid"
6-
version = "1.0-SNAPSHOT"
9+
version = "0.1.0"
710

811
repositories {
912
mavenCentral()
@@ -22,4 +25,48 @@ tasks.test {
2225
}
2326
kotlin {
2427
jvmToolchain(17)
28+
}
29+
30+
mavenPublishing {
31+
coordinates(
32+
groupId = "io.github.kdroidfilter",
33+
artifactId = "composenativetray",
34+
version = version.toString()
35+
)
36+
37+
// Configure POM metadata for the published artifact
38+
pom {
39+
name.set("Compose Native Tray")
40+
description.set("ComposeTray is a Kotlin library that provides a simple way to create system tray applications with native support for Linux and Windows. This library allows you to add a system tray icon, tooltip, and menu with various options in a Kotlin DSL-style syntax.")
41+
inceptionYear.set("2024")
42+
url.set("https://github.com/kdroidFilter/ComposeNativeTray")
43+
44+
licenses {
45+
license {
46+
name.set("MIT")
47+
url.set("https://opensource.org/licenses/MIT")
48+
}
49+
}
50+
51+
// Specify developers information
52+
developers {
53+
developer {
54+
id.set("kdroidfilter")
55+
name.set("Elyahou Hadass")
56+
email.set("[email protected]")
57+
}
58+
}
59+
60+
// Specify SCM information
61+
scm {
62+
url.set("https://github.com/kdroidFilter/ComposeNativeTray")
63+
}
64+
}
65+
66+
// Configure publishing to Maven Central
67+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
68+
69+
70+
// Enable GPG signing for all publications
71+
signAllPublications()
2572
}

0 commit comments

Comments
 (0)