/
build.gradle
35 lines (32 loc) · 1.02 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*******************************************************************************
* Copyright (c) 2019, 2024 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
dependencies {
requiredLibs 'org.apache.commons:commons-compress:1.24.0'
}
task copyBundles {
dependsOn jar
enabled project.file('test-bundles').exists()
doFirst {
new File(project.buildDir, 'buildfiles').eachLine { String line ->
if (!line.contains(project.name + '.jar')) {
copy {
from line
into new File(autoFvtDir, 'publish/bundles')
}
}
}
}
}
addRequiredLibraries {
dependsOn copyBundles
}