File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,18 @@ plugins {
1111 id ' java-library'
1212}
1313
14+ configurations {
15+ // configuration that holds jars to include in the jar
16+ extraLibs
17+ }
18+
1419dependencies {
1520 // These dependency is used internally, and not exposed to consumers on their own compile classpath.
1621 implementation files(' lib/log4j.jar' )
1722 implementation project(' RejigInterface' )
1823
24+ extraLibs files(' lib/log4j.jar' )
25+
1926 // Use JUnit test framework
2027 testImplementation ' junit:junit:4.12'
2128}
@@ -27,6 +34,12 @@ repositories {
2734 jcenter()
2835}
2936
37+ jar {
38+ from {
39+ configurations. extraLibs. collect { it. isDirectory() ? it : zipTree(it) }
40+ }
41+ }
42+
3043// Run tests as tasks
3144task memcachedBench (type : JavaExec ) {
3245 main = ' edu.usc.cs550.rejig.client.test.MemcachedBench'
You can’t perform that action at this time.
0 commit comments