-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4a728b
commit 7b9b92f
Showing
25 changed files
with
57 additions
and
57 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
3 changes: 1 addition & 2 deletions
3
...werkz/build/maven/GradleInvocationTest.kt → ...erkz/graven/maven/GradleInvocationTest.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
2 changes: 1 addition & 1 deletion
2
...ild/maven/MavenProcessInvocationResult.kt → ...ven/maven/MavenProcessInvocationResult.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
2 changes: 1 addition & 1 deletion
2
...erkz/build/maven/MavenProcessInvoker.java → ...rkz/graven/maven/MavenProcessInvoker.java
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
2 changes: 1 addition & 1 deletion
2
...n/com/antwerkz/build/maven/MavenTester.kt → .../com/antwerkz/graven/maven/MavenTester.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
2 changes: 1 addition & 1 deletion
2
...twerkz/build/maven/ReplacementMojoTest.kt → ...werkz/graven/maven/ReplacementMojoTest.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
2 changes: 1 addition & 1 deletion
2
...om/antwerkz/build/maven/RunningInvoker.kt → ...m/antwerkz/graven/maven/RunningInvoker.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
2 changes: 1 addition & 1 deletion
2
.../resources/maven/projects/doubleQuotes/src/main/kotlin/com/antwerkz/build/DoubleQuotes.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,3 +1,3 @@ | ||
package com.antwerkz.build | ||
package com.antwerkz.graven | ||
|
||
class DoubleQuotes |
2 changes: 1 addition & 1 deletion
2
...t/resources/maven/projects/gradleInvoke/src/main/kotlin/com/antwerkz/build/GradleDummy.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,4 +1,4 @@ | ||
package com.antwerkz.build | ||
package com.antwerkz.graven | ||
|
||
class GradleDummy { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...est/resources/maven/projects/gradleInvoke/src/test/kotlin/com/antwerkz/build/DummyTest.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,4 +1,4 @@ | ||
package com.antwerkz.build | ||
package com.antwerkz.graven | ||
|
||
class DummyTest { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...c/test/resources/maven/projects/noRegex/src/main/kotlin/com/antwerkz/build/SampleClass.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,4 +1,4 @@ | ||
package com.antwerkz.build | ||
package com.antwerkz.graven | ||
|
||
class SampleClass { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...est/resources/maven/projects/properties/src/main/kotlin/com/antwerkz/build/SampleClass.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,4 +1,4 @@ | ||
package com.antwerkz.build | ||
package com.antwerkz.graven | ||
|
||
class SampleClass { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...t/resources/maven/projects/singleQuotes/src/main/kotlin/com/antwerkz/build/SampleClass.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,4 +1,4 @@ | ||
package com.antwerkz.build | ||
package com.antwerkz.graven | ||
|
||
class SampleClass { | ||
i should fail | ||
|
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
5 changes: 3 additions & 2 deletions
5
...om/antwerkz/build/GradleInvocationMojo.kt → ...m/antwerkz/graven/GradleInvocationMojo.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
4 changes: 2 additions & 2 deletions
4
...werkz/build/GravenLifecycleParticipant.kt → ...erkz/graven/GravenLifecycleParticipant.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
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
7 changes: 4 additions & 3 deletions
7
...ain/kotlin/com/antwerkz/build/Updaters.kt → ...in/kotlin/com/antwerkz/graven/Updaters.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
2 changes: 1 addition & 1 deletion
2
...n/kotlin/com/antwerkz/build/GradleTask.kt → ...n/com/antwerkz/graven/model/GradleTask.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
2 changes: 1 addition & 1 deletion
2
...kotlin/com/antwerkz/build/GravenConfig.kt → ...com/antwerkz/graven/model/GravenConfig.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
23 changes: 23 additions & 0 deletions
23
mojo/src/main/kotlin/com/antwerkz/graven/model/RegexReplacement.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.antwerkz.graven.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonRootName | ||
|
||
@JsonRootName("replacement") | ||
class RegexReplacement() { | ||
lateinit var pattern: String | ||
lateinit var value: String | ||
private val regex by lazy { Regex(pattern) } | ||
|
||
constructor(pattern: String, value: String) : this() { | ||
this.pattern = pattern | ||
this.value = value | ||
} | ||
|
||
fun replace(input: String): String { | ||
return input.replace(regex, value) | ||
} | ||
|
||
override fun toString(): String { | ||
return "Replacement(pattern='$pattern', value='$value')" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../com/antwerkz/build/model/TargetPlugin.kt → ...com/antwerkz/graven/model/TargetPlugin.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
3 changes: 2 additions & 1 deletion
3
...com/antwerkz/build/ReplacementMojoTest.kt → ...om/antwerkz/graven/ReplacementMojoTest.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
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