Skip to content

Commit

Permalink
fix shaded deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Oct 26, 2021
1 parent bcab40d commit d1f95e4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
6 changes: 1 addition & 5 deletions tests/scripts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/


plugins {
id "de.undercouch.download" version "4.1.2"
}



task downloadShunit2(type: Download) {
src 'https://github.com/kward/shunit2/archive/v2.1.7.zip'
dest new File(buildDir, "shunit2-2.1.7.zip")
Expand All @@ -35,9 +31,9 @@ task extractShunit2(dependsOn: downloadShunit2, type: Copy) {
}

task executeShTests(dependsOn: extractShunit2, type: Exec) {

workingDir "src/test/bash"
commandLine "./bk_test.sh"
args "-e PROJECT_BUILD_SYSTEM=gradle"
}

tasks.test.dependsOn("executeShTests")
3 changes: 0 additions & 3 deletions tests/scripts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
<skip>${skipTests}</skip>
<workingDirectory>${project.basedir}/src/test/bash</workingDirectory>
<executable>${project.basedir}/src/test/bash/bk_test.sh</executable>
<arguments>
<argument>target</argument>
</arguments>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion tests/shaded/bookkeeper-server-shaded-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ plugins {
dependencies {
testImplementation depLibs.slf4j
testImplementation depLibs.junit
testImplementation fileTree(dir: '../../../shaded/bookkeeper-server-shaded/', include: ['**/*.jar'])
testImplementation project(path: ':shaded:bookkeeper-server-shaded', configuration: 'shadow')
}

4 changes: 2 additions & 2 deletions tests/shaded/bookkeeper-server-tests-shaded-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
testImplementation depLibs.slf4j
testImplementation depLibs.junit
testImplementation depLibs.commonsConfiguration
testImplementation project(':shaded:bookkeeper-server-shaded')
testImplementation fileTree(dir: '../../../shaded/bookkeeper-server-tests-shaded/', include: ['**/*.jar'])
testImplementation project(path: ':shaded:bookkeeper-server-shaded', configuration: 'shadow')
testImplementation project(path: ':shaded:bookkeeper-server-tests-shaded', configuration: 'shadow')
}

2 changes: 1 addition & 1 deletion tests/shaded/distributedlog-core-shaded-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ dependencies {
testImplementation depLibs.powermockMockito
testImplementation depLibs.powermockJunit
testImplementation depLibs.commonsConfiguration
testImplementation fileTree(dir: '../../../shaded/distributedlog-core-shaded/', include: ['**/*.jar'])
testImplementation project(path: ':shaded:distributedlog-core-shaded', configuration: 'shadow')
}

0 comments on commit d1f95e4

Please sign in to comment.