Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit f07d493

Browse files
committed
Update common-build-script.gradle.kts
1 parent 9fefb17 commit f07d493

File tree

1 file changed

+25
-31
lines changed

1 file changed

+25
-31
lines changed

buildSrc/src/main/kotlin/common-build-script.gradle.kts

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,37 @@ plugins {
4545
kotlin {
4646
jvm {
4747
withJava()
48+
mavenPublication {
49+
50+
getComponents()["java"]
51+
52+
this.groupId = project.group.toString()
53+
this.artifactId = project.name
54+
this.version = project.version.toString()
55+
56+
pom {
57+
58+
name.set(project.name)
59+
description.set(project.description)
60+
61+
developers {
62+
developer {
63+
name.set("bluefireoly")
64+
}
65+
}
66+
67+
url.set(githubUrl)
68+
69+
}
70+
71+
}
4872
}
4973
}
5074

5175
/*
5276
* BUILD
5377
*/
5478

55-
5679
java {
5780
java.sourceCompatibility = jvmVersion
5881
java.targetCompatibility = jvmVersion
@@ -74,7 +97,7 @@ bintray {
7497
user = project.findProperty("bintray.username") as? String ?: ""
7598
key = project.findProperty("bintray.api_key") as? String ?: ""
7699

77-
setPublications(project.name)
100+
setPublications("jvm")
78101

79102
pkg.apply {
80103

@@ -92,35 +115,6 @@ bintray {
92115

93116
}
94117

95-
publishing {
96-
publications {
97-
create<MavenPublication>(project.name) {
98-
99-
from(components["java"])
100-
101-
this.groupId = project.group.toString()
102-
this.artifactId = project.name
103-
this.version = project.version.toString()
104-
105-
pom {
106-
107-
name.set(project.name)
108-
description.set(project.description)
109-
110-
developers {
111-
developer {
112-
name.set("bluefireoly")
113-
}
114-
}
115-
116-
url.set(githubUrl)
117-
118-
}
119-
120-
}
121-
}
122-
}
123-
124118
/*
125119
* EXTENSIONS
126120
*/

0 commit comments

Comments
 (0)