Skip to content

Commit

Permalink
Reduce extra doc package in intiTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jan 9, 2025
1 parent 110a87e commit fb221e3
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.jengelman.gradle.plugins.shadow.doc
package com.github.jengelman.gradle.plugins.shadow

import com.github.jengelman.gradle.plugins.shadow.doc.executable.CodeSnippetExtractor
import com.github.jengelman.gradle.plugins.shadow.doc.executor.GroovyBuildExecutor
import com.github.jengelman.gradle.plugins.shadow.doc.executor.NoopExecutor
import com.github.jengelman.gradle.plugins.shadow.doc.fixture.GroovyDslFixture
import com.github.jengelman.gradle.plugins.shadow.executable.CodeSnippetExtractor
import com.github.jengelman.gradle.plugins.shadow.executor.GroovyBuildExecutor
import com.github.jengelman.gradle.plugins.shadow.executor.NoopExecutor
import com.github.jengelman.gradle.plugins.shadow.fixture.GroovyDslFixture
import java.nio.file.Path
import kotlin.io.path.Path
import org.junit.jupiter.api.DynamicTest
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.jengelman.gradle.plugins.shadow.doc.executable
package com.github.jengelman.gradle.plugins.shadow.executable

import com.github.jengelman.gradle.plugins.shadow.doc.executor.SnippetExecutor
import com.github.jengelman.gradle.plugins.shadow.executor.SnippetExecutor
import java.nio.file.Path
import kotlin.io.path.createTempDirectory
import org.junit.jupiter.api.function.Executable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.jengelman.gradle.plugins.shadow.doc.executable
package com.github.jengelman.gradle.plugins.shadow.executable

import com.github.jengelman.gradle.plugins.shadow.doc.DocCodeSnippetTest
import com.github.jengelman.gradle.plugins.shadow.doc.executor.SnippetExecutor
import com.github.jengelman.gradle.plugins.shadow.DocCodeSnippetTest
import com.github.jengelman.gradle.plugins.shadow.executor.SnippetExecutor
import java.nio.file.Path
import java.util.regex.Pattern
import kotlin.io.path.ExperimentalPathApi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.jengelman.gradle.plugins.shadow.doc.executor
package com.github.jengelman.gradle.plugins.shadow.executor

import com.github.jengelman.gradle.plugins.shadow.doc.fixture.SnippetFixture
import com.github.jengelman.gradle.plugins.shadow.fixture.SnippetFixture
import java.nio.file.Path
import kotlin.io.path.createDirectory
import kotlin.io.path.writeText
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.jengelman.gradle.plugins.shadow.doc.executor
package com.github.jengelman.gradle.plugins.shadow.executor

import com.github.jengelman.gradle.plugins.shadow.doc.fixture.SnippetFixture
import com.github.jengelman.gradle.plugins.shadow.fixture.SnippetFixture
import java.nio.file.Path

object NoopExecutor : SnippetExecutor {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.github.jengelman.gradle.plugins.shadow.executor

import com.github.jengelman.gradle.plugins.shadow.fixture.SnippetFixture
import java.nio.file.Path

interface SnippetExecutor {
val fixture: SnippetFixture

fun execute(tempDir: Path, snippet: String)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.jengelman.gradle.plugins.shadow.doc.fixture
package com.github.jengelman.gradle.plugins.shadow.fixture

object GroovyDslFixture : SnippetFixture {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.github.jengelman.gradle.plugins.shadow.fixture

interface SnippetFixture {
val pre: String
}

0 comments on commit fb221e3

Please sign in to comment.