Skip to content

Commit fb221e3

Browse files
committed
Reduce extra doc package in intiTest
1 parent 110a87e commit fb221e3

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.github.jengelman.gradle.plugins.shadow.doc
1+
package com.github.jengelman.gradle.plugins.shadow
22

3-
import com.github.jengelman.gradle.plugins.shadow.doc.executable.CodeSnippetExtractor
4-
import com.github.jengelman.gradle.plugins.shadow.doc.executor.GroovyBuildExecutor
5-
import com.github.jengelman.gradle.plugins.shadow.doc.executor.NoopExecutor
6-
import com.github.jengelman.gradle.plugins.shadow.doc.fixture.GroovyDslFixture
3+
import com.github.jengelman.gradle.plugins.shadow.executable.CodeSnippetExtractor
4+
import com.github.jengelman.gradle.plugins.shadow.executor.GroovyBuildExecutor
5+
import com.github.jengelman.gradle.plugins.shadow.executor.NoopExecutor
6+
import com.github.jengelman.gradle.plugins.shadow.fixture.GroovyDslFixture
77
import java.nio.file.Path
88
import kotlin.io.path.Path
99
import org.junit.jupiter.api.DynamicTest

src/intiTest/kotlin/com/github/jengelman/gradle/plugins/shadow/doc/executor/SnippetExecutor.kt

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/intiTest/kotlin/com/github/jengelman/gradle/plugins/shadow/doc/fixture/SnippetFixture.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.github.jengelman.gradle.plugins.shadow.doc.executable
1+
package com.github.jengelman.gradle.plugins.shadow.executable
22

3-
import com.github.jengelman.gradle.plugins.shadow.doc.executor.SnippetExecutor
3+
import com.github.jengelman.gradle.plugins.shadow.executor.SnippetExecutor
44
import java.nio.file.Path
55
import kotlin.io.path.createTempDirectory
66
import org.junit.jupiter.api.function.Executable
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package com.github.jengelman.gradle.plugins.shadow.doc.executable
1+
package com.github.jengelman.gradle.plugins.shadow.executable
22

3-
import com.github.jengelman.gradle.plugins.shadow.doc.DocCodeSnippetTest
4-
import com.github.jengelman.gradle.plugins.shadow.doc.executor.SnippetExecutor
3+
import com.github.jengelman.gradle.plugins.shadow.DocCodeSnippetTest
4+
import com.github.jengelman.gradle.plugins.shadow.executor.SnippetExecutor
55
import java.nio.file.Path
66
import java.util.regex.Pattern
77
import kotlin.io.path.ExperimentalPathApi
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.github.jengelman.gradle.plugins.shadow.doc.executor
1+
package com.github.jengelman.gradle.plugins.shadow.executor
22

3-
import com.github.jengelman.gradle.plugins.shadow.doc.fixture.SnippetFixture
3+
import com.github.jengelman.gradle.plugins.shadow.fixture.SnippetFixture
44
import java.nio.file.Path
55
import kotlin.io.path.createDirectory
66
import kotlin.io.path.writeText
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.github.jengelman.gradle.plugins.shadow.doc.executor
1+
package com.github.jengelman.gradle.plugins.shadow.executor
22

3-
import com.github.jengelman.gradle.plugins.shadow.doc.fixture.SnippetFixture
3+
import com.github.jengelman.gradle.plugins.shadow.fixture.SnippetFixture
44
import java.nio.file.Path
55

66
object NoopExecutor : SnippetExecutor {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.github.jengelman.gradle.plugins.shadow.executor
2+
3+
import com.github.jengelman.gradle.plugins.shadow.fixture.SnippetFixture
4+
import java.nio.file.Path
5+
6+
interface SnippetExecutor {
7+
val fixture: SnippetFixture
8+
9+
fun execute(tempDir: Path, snippet: String)
10+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.jengelman.gradle.plugins.shadow.doc.fixture
1+
package com.github.jengelman.gradle.plugins.shadow.fixture
22

33
object GroovyDslFixture : SnippetFixture {
44

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.github.jengelman.gradle.plugins.shadow.fixture
2+
3+
interface SnippetFixture {
4+
val pre: String
5+
}

0 commit comments

Comments
 (0)