From a97576c395e744ec7a28d7f9857958768166a439 Mon Sep 17 00:00:00 2001 From: qian0817 Date: Sun, 10 Apr 2022 15:09:47 +0800 Subject: [PATCH] fix: fix value not set when rawString is true. --- .../gradle/plugins/shadow/relocation/SimpleRelocator.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocator.groovy b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocator.groovy index acc3cb13d..442eddbe3 100644 --- a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocator.groovy +++ b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocator.groovy @@ -21,6 +21,7 @@ package com.github.jengelman.gradle.plugins.shadow.relocation import org.codehaus.plexus.util.SelectorUtils import org.gradle.api.tasks.Input +import org.gradle.api.tasks.Optional import java.util.regex.Pattern @@ -206,6 +207,7 @@ class SimpleRelocator implements Relocator { } @Input + @Optional String getPattern() { return pattern } @@ -216,6 +218,7 @@ class SimpleRelocator implements Relocator { } @Input + @Optional String getShadedPattern() { return shadedPattern }