Skip to content

Commit

Permalink
Replace hardcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Sep 17, 2024
1 parent 86093b0 commit fc4fbd0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class ShadowJavaPlugin implements Plugin<Project> {
def shadowConfiguration = project.configurations.getByName(ShadowBasePlugin.CONFIGURATION_NAME)
def shadowTaskProvider = configureShadowTask(project, shadowConfiguration)

project.configurations.compileClasspath.extendsFrom shadowConfiguration
project.configurations.named(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME) {
it.extendsFrom(shadowConfiguration)
}

project.configurations.register("shadowRuntimeElements") {
it.extendsFrom(shadowConfiguration)
Expand Down Expand Up @@ -94,7 +96,7 @@ class ShadowJavaPlugin implements Plugin<Project> {
}
shadow.from(sourceSets.main.output)
shadow.configurations = [
project.configurations.findByName('runtimeClasspath') ?: project.configurations.runtime,
project.configurations.getByName(JavaPlugin.RUNTIME_CLASSPATH_CONFIGURATION_NAME) ?: project.configurations.runtime,
]
shadow.exclude('META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'module-info.class')
}
Expand Down

0 comments on commit fc4fbd0

Please sign in to comment.