-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleaning up TestKit. #1010
Cleaning up TestKit. #1010
Conversation
@@ -12,7 +12,7 @@ public abstract class AbstractGradleProject @JvmOverloads constructor( | |||
buildPath: String = "build/functionalTest", | |||
) { | |||
|
|||
protected fun newGradleProjectBuilder(): GradleProject.Builder { | |||
protected open fun newGradleProjectBuilder(): GradleProject.Builder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super happy with this, but it solved a problem quickly.
sources = emptyList() | ||
} | ||
} | ||
|
||
private fun defaultRootProjectBuildScript(): BuildScript { | ||
return BuildScript( | ||
plugins = Plugins(listOf(Plugin.dependencyAnalysis, Plugin.kotlinPlugin(apply = false))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The included build projects should do this more centrally than how I've solved it currently.
testkit/src/main/kotlin/com/autonomousapps/kit/android/AndroidSubproject.kt
Show resolved
Hide resolved
builder.withSubprojectInIncludedBuild('second-build', 'second-sub1') { secondSub -> | ||
builder.withSubprojectInIncludedBuild( | ||
'second-build', | ||
[Plugins.dependencyAnalysis, Plugins.kotlinNoApply], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this nicer somehow?
@@ -30,8 +31,8 @@ final class IncludedBuildWithDivergingPluginClasspathsProject extends AbstractPr | |||
} | |||
builder.withIncludedBuild('second-build') { second -> | |||
second.withBuildScript { bs -> | |||
bs.plugins.add(Plugin.javaLibrary) | |||
if (divergingPluginClasspaths) bs.plugins.add(Plugin.springBoot) | |||
bs.plugins = [Plugins.dependencyAnalysis, Plugins.kotlinNoApply, Plugin.javaLibrary] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this nicer somehow?
builder.withSubprojectInIncludedBuild('processor-build', 'sub-processor1') { secondSub -> | ||
builder.withSubprojectInIncludedBuild( | ||
'processor-build', | ||
[Plugins.dependencyAnalysis, Plugins.kotlinNoApply], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicer
@@ -42,7 +46,7 @@ final class IncludedBuildProject extends AbstractProject { | |||
} | |||
builder.withIncludedBuild('second-build') { second -> | |||
second.withBuildScript { bs -> | |||
bs.plugins.add(Plugin.javaLibrary) | |||
bs.plugins = [Plugins.dependencyAnalysis, Plugins.kotlinNoApply, Plugin.javaLibrary] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicer
Build failed |
They don't belong in the library, since they make too many assumptions.
3451a4a
to
64522ac
Compare
No description provided.