@@ -26,6 +26,7 @@ group = "dev.gitlive"
2626version = project.property(" version" ) as String
2727
2828java {
29+ withSourcesJar()
2930 sourceCompatibility = JavaVersion .VERSION_11
3031}
3132
@@ -89,7 +90,7 @@ val cleanLibs by tasks.creating(Delete::class) {
8990 delete(" $buildDir /libs" )
9091}
9192
92- configure< PublishingExtension > {
93+ publishing {
9394
9495 repositories {
9596 maven {
@@ -101,46 +102,47 @@ configure<PublishingExtension> {
101102 }
102103 }
103104
104- publications.all {
105- this as MavenPublication
106-
107- pom {
108- name.set(" firebase-java-sdk" )
109- description.set(" The Firebase Java SDK is a pure java port of the Firebase Android SDK to run in clientside java environments such as the desktop." )
110- url.set(" https://github.com/GitLiveApp/firebase-java-sdk" )
111- inceptionYear.set(" 2023" )
112-
113- scm {
114- url.set(" https://github.com/GitLiveApp/firebase-java-sdk" )
115- connection.set(" scm:git:https://github.com/GitLiveApp/firebase-java-sdk.git" )
116- developerConnection.set(" scm:git:https://github.com/GitLiveApp/firebase-java-sdk.git" )
117- tag.set(" HEAD" )
118- }
119-
120- issueManagement {
121- system.set(" GitHub Issues" )
122- url.set(" https://github.com/GitLiveApp/firebase-java-sdk/issues" )
123- }
124-
125- developers {
126- developer {
127- name.set(" Nicholas Bransby-Williams" )
128- email.set(" nbransby@gmail.com" )
129- }
130- }
131-
132- licenses {
133- license {
134- name.set(" The Apache Software License, Version 2.0" )
135- url.set(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
136- distribution.set(" repo" )
137- comments.set(" A business-friendly OSS license" )
138- }
105+ publications {
106+ create<MavenPublication >(" library" ) {
107+ from(components[" java" ])
108+
109+ pom {
110+ name.set(" firebase-java-sdk" )
111+ description.set(" The Firebase Java SDK is a pure java port of the Firebase Android SDK to run in clientside java environments such as the desktop." )
112+ url.set(" https://github.com/GitLiveApp/firebase-java-sdk" )
113+ inceptionYear.set(" 2023" )
114+
115+ scm {
116+ url.set(" https://github.com/GitLiveApp/firebase-java-sdk" )
117+ connection.set(" scm:git:https://github.com/GitLiveApp/firebase-java-sdk.git" )
118+ developerConnection.set(" scm:git:https://github.com/GitLiveApp/firebase-java-sdk.git" )
119+ tag.set(" HEAD" )
120+ }
121+
122+ issueManagement {
123+ system.set(" GitHub Issues" )
124+ url.set(" https://github.com/GitLiveApp/firebase-java-sdk/issues" )
125+ }
126+
127+ developers {
128+ developer {
129+ name.set(" Nicholas Bransby-Williams" )
130+ email.set(" nbransby@gmail.com" )
131+ }
132+ }
133+
134+ licenses {
135+ license {
136+ name.set(" The Apache Software License, Version 2.0" )
137+ url.set(" http://www.apache.org/licenses/LICENSE-2.0.txt" )
138+ distribution.set(" repo" )
139+ comments.set(" A business-friendly OSS license" )
140+ }
141+ }
139142 }
140143 }
141144 }
142-
143- }
145+ }
144146
145147dependencies {
146148 compileOnly(" org.robolectric:android-all:12.1-robolectric-8229987" )
0 commit comments