@@ -26,6 +26,7 @@ group = "dev.gitlive"
26
26
version = project.property(" version" ) as String
27
27
28
28
java {
29
+ withSourcesJar()
29
30
sourceCompatibility = JavaVersion .VERSION_11
30
31
}
31
32
@@ -89,7 +90,7 @@ val cleanLibs by tasks.creating(Delete::class) {
89
90
delete(" $buildDir /libs" )
90
91
}
91
92
92
- configure< PublishingExtension > {
93
+ publishing {
93
94
94
95
repositories {
95
96
maven {
@@ -101,46 +102,47 @@ configure<PublishingExtension> {
101
102
}
102
103
}
103
104
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
-
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
+
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
+ }
139
142
}
140
143
}
141
144
}
142
-
143
- }
145
+ }
144
146
145
147
dependencies {
146
148
compileOnly(" org.robolectric:android-all:12.1-robolectric-8229987" )
0 commit comments