Skip to content

Commit

Permalink
Update cli/build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt authored Aug 13, 2024
1 parent ee2a1f2 commit 6e14bb4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ components.java.withVariantsFromConfiguration(configurations.shadowRuntimeElemen

abstract class ComponentMaker {
@Inject
abstract SoftwareComponentFactory getFactory();
abstract SoftwareComponentFactory getFactory()
}

def componentFactory = objects.newInstance(ComponentMaker).factory
final componentFactory = objects.newInstance(ComponentMaker).factory

def shadowComponent = componentFactory.adhoc("shadow")
final shadowComponent = componentFactory.adhoc("shadow")
project.components.add(shadowComponent)

tasks.named('shadowJar', Jar) {
Expand All @@ -76,8 +76,6 @@ tasks.named('shadowJar', Jar) {
shadowComponent.addVariantsFromConfiguration(configurations.shadowRuntimeElements) {
it.mapToMavenScope("runtime")
}


tasks.register('sourcesBundleJar', Jar) {
it.archiveClassifier = 'sources'
it.archiveBaseName = 'jst-cli-bundle'
Expand Down

0 comments on commit 6e14bb4

Please sign in to comment.