Skip to content

Commit

Permalink
Use SetProperty on includes and excludes (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Dec 6, 2024
1 parent ce00c68 commit 4d0889d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions api/shadow.api
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ public class com/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocat
public fun canRelocateClass (Ljava/lang/String;)Z
public fun canRelocatePath (Ljava/lang/String;)Z
public fun exclude (Ljava/lang/String;)Lcom/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocator;
public final fun getExcludes ()Lorg/gradle/api/provider/ListProperty;
public final fun getIncludes ()Lorg/gradle/api/provider/ListProperty;
public final fun getExcludes ()Lorg/gradle/api/provider/SetProperty;
public final fun getIncludes ()Lorg/gradle/api/provider/SetProperty;
public fun include (Ljava/lang/String;)Lcom/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocator;
public fun relocateClass (Lcom/github/jengelman/gradle/plugins/shadow/relocation/RelocateClassContext;)Ljava/lang/String;
public fun relocatePath (Lcom/github/jengelman/gradle/plugins/shadow/relocation/RelocatePathContext;)Ljava/lang/String;
Expand Down
4 changes: 2 additions & 2 deletions src/docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
## [Unreleased]


## [v9.0.0-beta3] (2024-12-06)
## [v9.0.0-beta] (2024-12-06)

**Changed**

- **BREAKING CHANGE:** Some public getters are removed from `SimpleRelocator`, `includes` and `excludes` are exposed as `ListProperty`s. ([#1079](https://github.com/GradleUp/shadow/pull/1079))
- **BREAKING CHANGE:** Some public getters are removed from `SimpleRelocator`, `includes` and `excludes` are exposed as `SetProperty`s. ([#1079](https://github.com/GradleUp/shadow/pull/1079))

**Fixed**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.github.jengelman.gradle.plugins.shadow.relocation
import java.util.regex.Pattern
import org.codehaus.plexus.util.SelectorUtils
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.SetProperty
import org.gradle.api.tasks.Input

/**
Expand All @@ -28,10 +28,10 @@ public open class SimpleRelocator @JvmOverloads constructor(
private val shadedPathPattern: String

@get:Input
public val includes: ListProperty<String> = objectFactory.listProperty(String::class.java)
public val includes: SetProperty<String> = objectFactory.setProperty(String::class.java)

@get:Input
public val excludes: ListProperty<String> = objectFactory.listProperty(String::class.java)
public val excludes: SetProperty<String> = objectFactory.setProperty(String::class.java)

init {
if (rawString) {
Expand Down

0 comments on commit 4d0889d

Please sign in to comment.