-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·64 lines (55 loc) · 1.78 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id "io.freefair.lombok" version "6.4.3"
id 'com.github.jk1.dependency-license-report' version '2.1'
id "org.kordamp.gradle.markdown" version "2.2.0"
}
group 'com.fortify.ssc.parser.symphony-security-checker'
ext.getVersion = {
def result = project.findProperty('version');
return !result || result=='unspecified' ? new Date().format('0.yyyyMMdd.HHmmss') : result;
}
version = ext.getVersion();
ext.sscParserPluginVersion = project.version
ext {
gradleHelpersLocation = "https://raw.githubusercontent.com/fortify-ps/gradle-helpers/1.8"
}
apply from: "${gradleHelpersLocation}/repo-helper.gradle"
apply from: "${gradleHelpersLocation}/junit-helper.gradle"
apply from: "${gradleHelpersLocation}/ssc-parser-plugin-helper.gradle"
apply from: "${gradleHelpersLocation}/thirdparty-helper.gradle"
apply from: "${gradleHelpersLocation}/markdown2html.gradle"
apply plugin: 'java'
sourceCompatibility = 1.8
sourceSets {
test {
resources {
srcDir "sampleData"
}
}
}
configurations.all {
// Don't cache modules that may change (i.e. snapshots)
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
implementationExport(group: 'com.fortify.ssc.parser.util', name: 'fortify-ssc-parser-util-json', version:'1.6.1.RELEASE', changing: false) { transitive = true }
}
task copyMarkdown(type: Copy) {
from("${projectDir}") {
include "USAGE.md"
}
into "${m2hSourceDir}"
}
task dist(type: Zip) {
dependsOn 'build', 'markdownToHtml'
archiveFileName = "${rootProject.name}-${project.version}.zip"
destinationDirectory = file("$buildDir/dist")
from("${buildDir}/${libsDirName}") {
include "${rootProject.name}-${project.version}.jar"
}
from "${m2hOutputDir}"
from("${projectDir}") {
include "sampleData/**/*"
include "LICENSE.txt"
}
}