Skip to content

Commit

Permalink
shaded tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Oct 25, 2021
1 parent 6d39e33 commit ba89132
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 1 deletion.
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ include(':bookkeeper-benchmark',
'tests:integration:smoke',
'tests:integration:standalone',
'tests:scripts',
'tests:shaded:bookkeeper-server-shaded-test',
'tests:shaded:distributedlog-core-shaded-test',
'tools:framework')

project(':bookkeeper-tools').projectDir = file('tools/all')
Expand Down
1 change: 1 addition & 0 deletions shaded/bookkeeper-server-shaded/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {

shadowJar {
dependencies {

}
relocate 'com.google', 'org.apache.bookkeeper.shaded.com.google'
archiveBaseName.set("bookkeeper-server-shaded")
Expand Down
2 changes: 1 addition & 1 deletion shaded/distributedlog-core-shaded/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ plugins {
description = 'Apache BookKeeper :: Shaded :: distributedlog-core-shaded'

dependencies {
implementation project(':stream:distributedlog:core')
project(':stream:distributedlog:core')
}

shadowJar {
Expand Down
29 changes: 29 additions & 0 deletions tests/shaded/bookkeeper-server-shaded-test/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
plugins {
id 'java'
id 'com.adarshr.test-logger'
}

dependencies {
testImplementation depLibs.slf4j
testImplementation depLibs.junit
testImplementation fileTree(dir: '../../../shaded/bookkeeper-server-shaded/', include: ['**/*.jar'])
}

33 changes: 33 additions & 0 deletions tests/shaded/distributedlog-core-shaded-test/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
plugins {
id 'java'
id 'com.adarshr.test-logger'
}

dependencies {
testImplementation depLibs.slf4j
testImplementation depLibs.junit
testImplementation depLibs.mockito
testImplementation depLibs.powermockMockito
testImplementation depLibs.powermockJunit
testImplementation depLibs.commonsConfiguration
testImplementation fileTree(dir: '../../../shaded/distributedlog-core-shaded/', include: ['**/*.jar'])
}

0 comments on commit ba89132

Please sign in to comment.