-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (63 loc) · 2.08 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
plugins {
id 'java-defaults'
id 'junit5'
id 'application'
id 'dependency-updates'
id 'idea'
id 'jacoco-report'
// id 'spotless'
id "org.sonarqube" version "3.3"
id 'com.github.jk1.dependency-license-report' version '2.0'
}
group 'de.andrena.tools'
version '0.33'
repositories {
mavenCentral()
maven {
url "http://www.programmers-friend.org/maven/repo"
allowInsecureProtocol true
}
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.17.0'
implementation 'org.apache.logging.log4j:log4j-api:2.17.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'com.google.guava:guava:31.0.1-jre'
implementation 'org.ow2.asm:asm:9.2'
implementation 'io.github.classgraph:classgraph:4.8.138'
implementation group: 'org.threeten', name: 'threeten-extra', version: '1.7.0'
implementation group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '4.5.2'
testImplementation 'com.tngtech.archunit:archunit-junit5:0.22.0'
testImplementation 'org.assertj:assertj-core:3.21.0'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'de.andrena.tools.staticcodeanalysis.application.Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
application {
mainClass = 'de.andrena.tools.staticcodeanalysis.application.Main'
}
test {
useJUnitPlatform()
}
sonarqube {
properties {
property 'sonar.core.codeCoveragePlugin', 'jacoco'
property 'sonar.coverage.jacoco.xmlReportPaths', "${project.buildDir.getName()}/reports/jacoco/report.xml"
}
}
import com.github.jk1.license.render.*
licenseReport {
configurations = ['runtimeClasspath']
renderers = [new TextReportRenderer(), new SimpleHtmlReportRenderer()]
}
task replaceVersionInREADME {
ant.replaceregexp(match:"${project.name}"+'-([0-9\\.]+)\\.jar', replace:"${project.name}-${version}.jar", flags:'g', byline:true) {
fileset(dir: '.', includes: 'README.md')
}
}