forked from gorpipe/gor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (73 loc) · 2.77 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* BEGIN_COPYRIGHT
*
* Copyright (C) 2011-2013 deCODE genetics Inc.
* Copyright (C) 2013-2019 WuXi NextCode Inc.
* All Rights Reserved.
*
* GORpipe is free software: you can redistribute it and/or modify
* it under the terms of the AFFERO GNU General Public License as published by
* the Free Software Foundation.
*
* GORpipe is distributed "AS-IS" AND WITHOUT ANY WARRANTY OF ANY KIND,
* INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
* NON-INFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. See
* the AFFERO GNU General Public License for the complete license terms.
*
* You should have received a copy of the AFFERO GNU General Public License
* along with GORpipe. If not, see <http://www.gnu.org/licenses/agpl-3.0.html>
*
* END_COPYRIGHT
*/
// Configure the build script repositories and dependencies, must be defined in the top level gradle file.
buildscript {
repositories {
if (project.hasProperty('useMavenLocal')) {
mavenLocal()
}
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "gradle.plugin.com.gitlab.stfs.gradle.dependencygraph:gradle-dependency-graph-plugin:_"
// TODO: Do we use those:
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:_"
classpath 'de.undercouch:gradle-download-task:_'
constraints {
classpath("org.apache.logging.log4j:log4j-core") {
version {
strictly("[2.17, 3[")
prefer("2.17.0")
}
because("CVE-2021-44228: Log4j vulnerable to remote code execution")
}
}
}
}
plugins {
id 'idea'
id "org.ajoberstar.grgit"
id "kr.motd.sphinx" apply false
// Plugins not applied everywhere.
id "org.sonarqube" apply false
id "com.google.protobuf" apply false
id 'com.github.johnrengelman.shadow' apply false
// The following plugins are support plugins that don't effect the build directly.
id 'nebula.lint'
id "com.adarshr.test-logger" apply false
id "org.owasp.dependencycheck" apply false
id "com.github.ben-manes.versions" apply false
// For some reason refreshVersions is not detecting this one.
id("net.razvan.jacoco-to-cobertura") version "1.1.2"
// TODO: Add classpath "gradle.plugin.com.gitlab.stfs.gradle.dependencygraph:gradle-dependency-graph-plugin:latest.release"
}
apply plugin: "com.gitlab.stfs.gradle.dependency-graph-plugin"
ext {
// Get the git SHA to use in manifests. Do this on top level to avoid executing many times in subprojects.
gitSHA = grgit.head().id
}
gradleLint {
rules = ['all-dependency', 'duplicate-dependency-class']
//criticalRules = ['unused-dependency']
alwaysRun = false
}