File tree Expand file tree Collapse file tree 8 files changed +12
-9
lines changed
functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow
main/kotlin/com/github/jengelman/gradle/plugins/shadow Expand file tree Collapse file tree 8 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ public abstract class com/github/jengelman/gradle/plugins/shadow/ShadowBasePlugi
24
24
public static final field Companion Lcom/github/jengelman/gradle/plugins/shadow/ShadowBasePlugin$Companion;
25
25
public static final field DISTRIBUTION_NAME Ljava/lang/String;
26
26
public static final field EXTENSION_NAME Ljava/lang/String;
27
- public static final field GROUP_NAME Ljava/lang/String;
28
27
public static final field SHADOW Ljava/lang/String;
29
28
public fun <init> ()V
30
29
public synthetic fun apply (Ljava/lang/Object;)V
Original file line number Diff line number Diff line change 3
3
4
4
## [ Unreleased]
5
5
6
+ ** Changed**
7
+
8
+ - Move the group of ` ShadowJar ` from ` shadow ` to ` build ` . ([ #1355 ] ( https://github.com/GradleUp/shadow/pull/1355 ) )
9
+
6
10
7
11
## [ v9.0.0-beta11] (2025-03-18)
8
12
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ dependencies to merge into the output.
9
9
10
10
```kotlin
11
11
val testShadowJar by tasks.registering(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
12
- group = com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.GROUP_NAME
12
+ group = LifecycleBasePlugin.BUILD_GROUP
13
13
description = "Create a combined JAR of project and test dependencies"
14
14
15
15
archiveClassifier = "tests"
@@ -33,7 +33,7 @@ dependencies to merge into the output.
33
33
34
34
```groovy
35
35
def testShadowJar = tasks.register('testShadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
36
- group = com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.GROUP_NAME
36
+ group = LifecycleBasePlugin.BUILD_GROUP
37
37
description = 'Create a combined JAR of project and test dependencies'
38
38
39
39
archiveClassifier = 'tests'
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ It is possible to publish a custom `ShadowJar` task's output via the [`MavenPubl
163
163
}
164
164
165
165
val testShadowJar by tasks.registering(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
166
- group = com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.GROUP_NAME
166
+ group = LifecycleBasePlugin.BUILD_GROUP
167
167
description = "Create a combined JAR of project and test dependencies"
168
168
archiveClassifier = "tests"
169
169
from(sourceSets.test.map { it.output })
@@ -196,7 +196,7 @@ It is possible to publish a custom `ShadowJar` task's output via the [`MavenPubl
196
196
}
197
197
198
198
def testShadowJar = tasks.register('testShadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
199
- group = com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.GROUP_NAME
199
+ group = LifecycleBasePlugin.BUILD_GROUP
200
200
description = 'Create a combined JAR of project and test dependencies'
201
201
archiveClassifier = 'tests'
202
202
from sourceSets.named('test').map { it.output }
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ class JavaPluginTest : BasePluginTest() {
475
475
testImplementation 'junit:junit:3.8.2'
476
476
}
477
477
def $testShadowJarTask = tasks.register('$testShadowJarTask ', ${ShadowJar ::class .java.name} ) {
478
- group = com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.GROUP_NAME
478
+ group = LifecycleBasePlugin.BUILD_GROUP
479
479
description = 'Create a combined JAR of project and test dependencies'
480
480
archiveClassifier = 'tests'
481
481
from sourceSets.named('test').map { it.output }
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ class PublishingTest : BasePluginTest() {
148
148
publishConfiguration(
149
149
projectBlock = """
150
150
def testShadowJar = tasks.register('testShadowJar', ${ShadowJar ::class .java.name} ) {
151
- group = com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.GROUP_NAME
151
+ group = LifecycleBasePlugin.BUILD_GROUP
152
152
description = 'Create a combined JAR of project and test dependencies'
153
153
archiveClassifier = 'tests'
154
154
from sourceSets.named('test').map { it.output }
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ public abstract class ShadowBasePlugin : Plugin<Project> {
21
21
22
22
public companion object {
23
23
public const val SHADOW : String = " shadow"
24
- public const val GROUP_NAME : String = SHADOW
25
24
public const val EXTENSION_NAME : String = SHADOW
26
25
public const val CONFIGURATION_NAME : String = SHADOW
27
26
public const val COMPONENT_NAME : String = SHADOW
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import org.gradle.api.component.SoftwareComponentFactory
24
24
import org.gradle.api.plugins.JavaPlugin
25
25
import org.gradle.api.tasks.TaskContainer
26
26
import org.gradle.api.tasks.TaskProvider
27
+ import org.gradle.language.base.plugins.LifecycleBasePlugin
27
28
import org.gradle.plugin.devel.plugins.JavaGradlePluginPlugin
28
29
29
30
public abstract class ShadowJavaPlugin @Inject constructor(
@@ -127,7 +128,7 @@ public abstract class ShadowJavaPlugin @Inject constructor(
127
128
action : Action <ShadowJar >,
128
129
): TaskProvider <ShadowJar > {
129
130
return tasks.register(SHADOW_JAR_TASK_NAME , ShadowJar ::class .java) { task ->
130
- task.group = ShadowBasePlugin . GROUP_NAME
131
+ task.group = LifecycleBasePlugin . BUILD_GROUP
131
132
task.description = " Create a combined JAR of project and runtime dependencies"
132
133
task.archiveClassifier.set(" all" )
133
134
task.exclude(
You can’t perform that action at this time.
0 commit comments