File tree Expand file tree Collapse file tree 1 file changed +24
-7
lines changed
Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ plugins {
1515 id(" maven-publish" )
1616 id(" java-library" )
1717 id(" org.jetbrains.kotlin.jvm" ) version " 1.7.20"
18+ `java- library`
1819}
1920
2021group = " mobi.appcent"
@@ -47,14 +48,30 @@ tasks {
4748 }
4849}
4950
50- publishing {
51- publications {
52- create<MavenPublication >(" maven" ) {
53- groupId = " mobi.appcent"
54- artifactId = " ACMOpenAI-Android"
55- version = " 1.0.0"
51+ java {
52+ withJavadocJar()
53+ withSourcesJar()
54+ }
55+
56+ afterEvaluate {
57+ publishing {
58+ publications {
59+ register(" maven" , MavenPublication ::class ) {
60+ groupId = " mobi.appcent"
61+ artifactId = " ACMOpenAI-Android"
62+ version = " 1.0.0"
63+
64+ from(components[" java" ])
65+
66+ pom {
67+ packaging = " jar"
68+ name.set(" ACMOpenAI-Android" )
69+ scm {
70+ url.set(" https://github.com/AppcentMobile/ACMOpenAI-Android" )
71+ }
72+ }
5673
57- from(components[ " java " ])
74+ }
5875 }
5976 }
6077}
You can’t perform that action at this time.
0 commit comments