Skip to content

Commit

Permalink
build: do not build shadow jars
Browse files Browse the repository at this point in the history
  • Loading branch information
kris7t committed Jul 9, 2024
1 parent b699b42 commit 7815de4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import org.gradle.accessors.dm.LibrariesForLibs

plugins {
application
id("io.github.goooler.shadow")
id("tools.refinery.gradle.java-conventions")
}

Expand All @@ -26,16 +25,6 @@ dependencies {
implementation(enforcedPlatform(project(":refinery-bom-dependencies")))
}

// See https://github.com/johnrengelman/shadow/issues/586
// https://github.com/johnrengelman/shadow/issues/651
components.named<AdhocComponentWithVariants>("java") {
withVariantsFromConfiguration(configurations.shadowRuntimeElements.get()) {
skip()
}
}

for (taskName in listOf("distZip", "shadowDistTar", "shadowDistZip")) {
tasks.named(taskName) {
enabled = false
}
tasks.distZip {
enabled = false
}
7 changes: 1 addition & 6 deletions subprojects/generator-cli/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
* SPDX-FileCopyrightText: 2024 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
Expand All @@ -17,8 +17,3 @@ dependencies {
application {
mainClass.set("tools.refinery.generator.cli.RefineryCli")
}

tasks.shadowJar {
// Silence Xtext warning.
append("plugin.properties")
}
12 changes: 0 additions & 12 deletions subprojects/language-web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,6 @@ tasks {
}
}

shadowJar {
dependsOn(webapp)
from(project.sourceSets.main.map { it.output })
exclude("META-INF/INDEX.LIST", "META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA", "schema/*",
".options", ".api_description", "*.profile", "about.*", "about_*.html", "about_files/*",
"plugin.xml", "systembundle.properties", "profile.list", "META-INF/resources/xtext/**")
append("plugin.properties")
from(webapp) {
into("webapp")
}
}

register<JavaExec>("serve") {
dependsOn(webapp)
val mainRuntimeClasspath = sourceSets.main.map { it.runtimeClasspath }
Expand Down

0 comments on commit 7815de4

Please sign in to comment.