Skip to content

Commit

Permalink
split dependencies to "prod" and "test" libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed May 21, 2017
1 parent 94e22c9 commit 61411b5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,18 @@ dependencies {
testCompile 'com.automation-remarks:video-recorder-junit:1.4.1'
}

task libs(type: Sync) {
task libsProd(type: Sync) {
from configurations.compile
from configurations.runtime
into "$buildDir/lib-prod"
}

task libsTest(type: Sync) {
from configurations.testRuntime
into "$buildDir/lib"
into "$buildDir/lib-test"
}

compileJava.dependsOn libs
compileJava.dependsOn libsProd, libsTest

findbugs {
toolVersion = "3.0.1"
Expand Down
18 changes: 14 additions & 4 deletions selenide.iml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,25 @@
<orderEntry type="module-library" exported="">
<library>
<CLASSES>
<root url="file://$MODULE_DIR$/build/lib" />
<root url="file://$MODULE_DIR$/build/lib-prod" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://$MODULE_DIR$/build/lib" />
<root url="file://$MODULE_DIR$/build/lib-prod" />
<root url="jar://$USER_HOME$/.ideaLibSources/junit-4.12-sources.jar!/" />
</SOURCES>
<jarDirectory url="file://$MODULE_DIR$/build/lib" recursive="false" />
<jarDirectory url="file://$MODULE_DIR$/build/lib" recursive="false" type="SOURCES" />
<jarDirectory url="file://$MODULE_DIR$/build/lib-prod" recursive="false" />
<jarDirectory url="file://$MODULE_DIR$/build/lib-prod" recursive="false" type="SOURCES" />
</library>
</orderEntry>
<orderEntry type="module-library" scope="TEST">
<library>
<CLASSES>
<root url="file://$MODULE_DIR$/build/lib-test" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$MODULE_DIR$/build/lib-test" recursive="false" />
</library>
</orderEntry>
</component>
Expand Down

0 comments on commit 61411b5

Please sign in to comment.