-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
6 changed files
with
72 additions
and
32 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
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/de/benediktritter/maven/plugin/development/task/DependencyDescriptor.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,18 @@ | ||
package de.benediktritter.maven.plugin.development.task | ||
|
||
import org.codehaus.plexus.component.repository.ComponentDependency | ||
import org.gradle.api.tasks.Input | ||
|
||
data class DependencyDescriptor( | ||
@get:Input val groupId: String, | ||
@get:Input val artifactId: String, | ||
@get:Input val version: String, | ||
@get:Input val type: String? | ||
) { | ||
fun toComponentDependency(): ComponentDependency = ComponentDependency().also { | ||
it.groupId = this.groupId | ||
it.artifactId = this.artifactId | ||
it.version = this.version | ||
it.type = this.type | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
src/test/groovy/de/benediktritter/maven/plugin/development/ConfigurationCacheFuncTest.groovy
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,18 @@ | ||
package de.benediktritter.maven.plugin.development | ||
|
||
class ConfigurationCacheFuncTest extends AbstractPluginFuncTest { | ||
def "supports configuration cache"() { | ||
given: | ||
javaMojo() | ||
buildFile << "mavenPlugin.helpMojoPackage.set('org.example.help')" | ||
|
||
and: | ||
run("build", "--configuration-cache") | ||
|
||
when: | ||
def result = run("build", "--configuration-cache") | ||
|
||
then: | ||
result.output.contains("Reusing configuration cache.") | ||
} | ||
} |