Skip to content

Commit

Permalink
Deprecated isEnableRelocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Nov 26, 2024
1 parent cd43df9 commit 6d4f3aa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/shadow.api
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public abstract class com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar
public fun getStats ()Lcom/github/jengelman/gradle/plugins/shadow/ShadowStats;
public final fun getToMinimize ()Lorg/gradle/api/file/ConfigurableFileCollection;
public abstract fun getTransformers ()Lorg/gradle/api/provider/ListProperty;
public final fun isEnableRelocation ()Z
public fun mergeGroovyExtensionModules ()Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar;
public synthetic fun mergeGroovyExtensionModules ()Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowSpec;
public fun mergeServiceFiles ()Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar;
Expand All @@ -331,6 +332,7 @@ public abstract class com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar
public synthetic fun relocate (Ljava/lang/String;Ljava/lang/String;)Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowSpec;
public fun relocate (Ljava/lang/String;Ljava/lang/String;Lorg/gradle/api/Action;)Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar;
public synthetic fun relocate (Ljava/lang/String;Ljava/lang/String;Lorg/gradle/api/Action;)Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowSpec;
public final fun setEnableRelocation (Z)V
public fun transform (Lcom/github/jengelman/gradle/plugins/shadow/transformers/Transformer;)Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar;
public synthetic fun transform (Lcom/github/jengelman/gradle/plugins/shadow/transformers/Transformer;)Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowSpec;
public fun transform (Ljava/lang/Class;)Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar;
Expand Down
3 changes: 2 additions & 1 deletion src/docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
**Changed**

- **BREAKING CHANGE:** Rewrite this plugin in Kotlin. ([#1012](https://github.com/GradleUp/shadow/pull/1012))
- **BREAKING CHANGE:** Migrate `ShadowJar` to using lazy properties. ([#1044](https://github.com/GradleUp/shadow/pull/1044))
- **BREAKING CHANGE:** Migrate `ShadowJar` to using lazy properties. ([#1044](https://github.com/GradleUp/shadow/pull/1044))
`isEnableRelocation` is deprecated, use `enableRelocation` instead.

**Removed**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@ public abstract class ShadowJar :
@get:Input
public abstract val enableRelocation: Property<Boolean>

@Deprecated(
level = DeprecationLevel.WARNING,
message = "Use enableRelocation instead, this will be deleted in 9.0",
replaceWith = ReplaceWith("enableRelocation"),
)
@get:Input
public var isEnableRelocation: Boolean
get() = enableRelocation.get()
set(value) {
enableRelocation.set(value)
}

@get:Input
public abstract val relocationPrefix: Property<String>

Expand Down

0 comments on commit 6d4f3aa

Please sign in to comment.