Skip to content

Commit

Permalink
bookkeeper-server-shaded-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Oct 25, 2021
1 parent ba89132 commit 3bc0b26
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions bookkeeper-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dependencies {
testImplementation depLibs.powermockJunit
testImplementation depLibs.powermockMockito
testImplementation depLibs.snappy
testImplementation depLibs.zookeeper
testImplementation depLibs.zookeeperTest
annotationProcessor depLibs.lombok
testAnnotationProcessor depLibs.lombok
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ include(':bookkeeper-benchmark',
'tests:integration:standalone',
'tests:scripts',
'tests:shaded:bookkeeper-server-shaded-test',
'tests:shaded:bookkeeper-server-tests-shaded-test',
'tests:shaded:distributedlog-core-shaded-test',
'tools:framework')

Expand Down
36 changes: 36 additions & 0 deletions shaded/bookkeeper-server-tests-shaded/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* 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.github.johnrengelman.shadow'
id 'com.github.hierynomus.license'
}

dependencies {
implementation project(path: ':bookkeeper-server', configuration: 'testArtifacts')
}

shadowJar {
dependencies {
}
relocate 'com.google', 'org.apache.bookkeeper.shaded.com.google'
archiveBaseName.set("bookkeeper-server-tests-shaded")
archiveClassifier.set("")
}
30 changes: 30 additions & 0 deletions tests/shaded/bookkeeper-server-tests-shaded-test/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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'])
testImplementation fileTree(dir: '../../../shaded/bookkeeper-server-tests-shaded/', include: ['**/*.jar'])
}

0 comments on commit 3bc0b26

Please sign in to comment.