-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only expose includes and excludes as inputs in SimpleRelocator (#1079)
* Remove public properties * Migrate includes and excludes to using ListProperty * Note this change
- Loading branch information
Showing
7 changed files
with
83 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/kotlin/com/github/jengelman/gradle/plugins/shadow/util/Utils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
package com.github.jengelman.gradle.plugins.shadow.util | ||
|
||
import com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator | ||
import org.gradle.api.model.ObjectFactory | ||
import org.gradle.testfixtures.ProjectBuilder | ||
|
||
val testObjectFactory: ObjectFactory = ProjectBuilder.builder().build().objects | ||
|
||
@Suppress("TestFunctionName") | ||
fun SimpleRelocator( | ||
pattern: String? = null, | ||
shadedPattern: String? = null, | ||
includes: List<String>? = null, | ||
excludes: List<String>? = null, | ||
rawString: Boolean = false, | ||
): SimpleRelocator = SimpleRelocator( | ||
objectFactory = testObjectFactory, | ||
pattern = pattern, | ||
shadedPattern = shadedPattern, | ||
includes = includes, | ||
excludes = excludes, | ||
rawString = rawString, | ||
) |