Skip to content

Commit 2daaef8

Browse files
committed
fix: corrected component to be published, removed hacks (#251)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent c885b79 commit 2daaef8

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

build.gradle.kts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ dependencies {
6464

6565
}
6666

67-
intellijPlatform {
68-
buildSearchableOptions = false // no custom settings, see https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-faq.html#how-to-disable-building-the-searchable-options
69-
}
70-
7167
tasks {
7268
wrapper {
7369
gradleVersion = providers.gradleProperty("gradleVersion").get()
@@ -91,24 +87,12 @@ tasks {
9187
archiveClassifier.set("test")
9288
}
9389

94-
withType<GenerateModuleMetadata> {
95-
enabled = false
96-
}
97-
9890
printProductsReleases {
9991
channels = listOf(ProductRelease.Channel.EAP)
10092
types = listOf(IntelliJPlatformType.IntellijIdeaCommunity)
10193
untilBuild = provider { null }
10294
}
10395

104-
// infamous hack, see https://github.com/gradle-nexus/publish-plugin/issues/354
105-
assemble {
106-
doLast {
107-
println("************************ GENERATING FAKE JAR FOR PUBLISHING TO NEXUS *************************************************")
108-
file("${layout.buildDirectory.get().asFile.absolutePath}/libs/intellij-common-${version}-searchableOptions.jar").writeText("...")
109-
}
110-
}
111-
11296
}
11397

11498
nexusPublishing {
@@ -133,7 +117,9 @@ val testArtifact = artifacts.add("archives", testJarFile) {
133117
publishing {
134118
publications {
135119
create<MavenPublication>("mavenJava") {
136-
from(components["java"])
120+
from(components["intellijPlatform"])
121+
artifact(tasks.named("sourcesJar"))
122+
artifact(tasks.named("javadocJar"))
137123
artifact(testArtifact)
138124
pom {
139125
name.set("IntelliJ Common")

0 commit comments

Comments
 (0)