Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Add multi-module sample project #101

Merged
merged 12 commits into from
Mar 21, 2018
Merged

Add multi-module sample project #101

merged 12 commits into from
Mar 21, 2018

Conversation

takecare
Copy link
Contributor

As setting up SAP on a multi-module project can be a bit tricky (or not very straight-forward) a sample project showcasing this sort of setup can be very helpful for people that want to use the plugin under such conditions.

The multi-module sample is a copy of the already existing sample, with an added (Java) module and the required changes to the SAP setup.

@takecare takecare requested review from rock3r and mr-archano March 15, 2018 17:23
mr-archano
mr-archano previously approved these changes Mar 16, 2018
Copy link
Contributor

@rock3r rock3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a question about the tasks, good otherwise

mavenCentral()
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: extra whitelines


dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.0.0.RC6-3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RC6-4 is out FYI

Copy link
Contributor Author

@takecare takecare Mar 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be breaking the plugin 🙀

A problem occurred evaluating script.
> Could not find method systemOrDefaultProfile() for arguments [] on DetektExtension(...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tracked in #102

"$p.name:assemble"
})

task build(dependsOn: ['assemble', 'check'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure we need these three tasks? Isn't it the default behaviour?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right. the way we refer to the tasks just needs some changing.

@mr-archano mr-archano merged commit 7d53175 into master Mar 21, 2018
@mr-archano mr-archano deleted the modules-sample-app branch March 21, 2018 22:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants