@@ -2,6 +2,7 @@ import com.vanniktech.maven.publish.SonatypeHost
2
2
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
3
3
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
4
4
5
+
5
6
group = " io.github.pahill"
6
7
version = " 1.0.3"
7
8
@@ -46,3 +47,41 @@ android {
46
47
minSdk = libs.versions.android.minSdk.get().toInt()
47
48
}
48
49
}
50
+
51
+ mavenPublishing {
52
+ publishToMavenCentral(SonatypeHost .DEFAULT )
53
+ // or when publishing to https://s01.oss.sonatype.org
54
+ publishToMavenCentral(SonatypeHost .S01 )
55
+ // or when publishing to https://central.sonatype.com/
56
+ publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL )
57
+
58
+ signAllPublications()
59
+
60
+ coordinates(" io.github.pahill" , " mylibrary-fibonacci" , " 1.0.3" )
61
+
62
+ pom {
63
+ name.set(" Fibonacci library" )
64
+ description.set(" A description of what my library does." )
65
+ inceptionYear.set(" 2024" )
66
+ url.set(" https://github.com/pahill/fibonacci/" )
67
+ licenses {
68
+ license {
69
+ name.set(" The Apache License, Version 2.0" )
70
+ url.set(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
71
+ distribution.set(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
72
+ }
73
+ }
74
+ developers {
75
+ developer {
76
+ id.set(" pahill" )
77
+ name.set(" Pamela Hill" )
78
+ url.set(" https://github.com/pahill/" )
79
+ }
80
+ }
81
+ scm {
82
+ url.set(" https://github.com/pahill/fibonacci/" )
83
+ connection.set(" scm:git:git://github.com/pahill/fibonacci.git" )
84
+ developerConnection.set(
" scm:git:ssh://[email protected] /pahill/fibonacci.git" )
85
+ }
86
+ }
87
+ }
0 commit comments