-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
132 lines (113 loc) · 3.42 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'signing'
id "io.freefair.lombok" version "5.0.0"
id 'org.sonarqube' version '2.8'
}
group 'io.microconfig.osdf'
version '1.7.1'
sourceCompatibility = 11
jar {
manifest {
attributes(
'Main-Class': 'io.osdf.CliStarter',
'Multi-Release': true
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
nexus(MavenPublication) {
pom {
name = 'OSDF'
description = 'OpenShift deploy tool based on Microconfig'
url = 'https://github.com/microconfig/osdf'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
scm {
connection = 'scm:git:https://github.com/microconfig/osdf.git'
developerConnection = 'scm:git:https://github.com/microconfig/osdf.git'
url = 'https://github.com/microconfig/osdf'
}
developers {
developer {
id = 'amatorin'
name = 'Alexander Matorin'
email = 'alx.matorin@gmail.com'
}
developer {
id = 'apavlov'
name = 'Artem Pavlov'
email = 'admpavlov@yandex.ru'
}
}
}
from components.java
}
}
repositories {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}
signing {
sign publishing.publications.nexus
}
repositories {
mavenCentral()
}
jacocoTestReport {
reports {
html.enabled true
xml.enabled true
}
afterEvaluate {
classDirectories.setFrom files(classDirectories.files.collect {
fileTree(dir: it, exclude: 'io/osdf/api/parameters')
})
}
}
sonarqube {
properties {
property "sonar.projectKey", "microconfig_osdf"
property "sonar.sources", "src/main/java"
property "sonar.binaries", "build/classes"
property "sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/jacoco/test/jacocoTestReport.xml"
}
}
apply from: 'jmeter.gradle'
dependencies {
implementation platform('org.springframework.boot:spring-boot-dependencies:2.2.6.RELEASE')
implementation 'org.yaml:snakeyaml'
implementation 'commons-io:commons-io:2.5'
implementation 'commons-cli:commons-cli:1.4'
implementation 'commons-codec:commons-codec'
implementation 'io.microconfig:microconfig-cli:4.2.0:all'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.jasypt:jasypt:1.9.3'
implementation 'org.zeroturnaround:zt-zip:1.14'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.mockito:mockito-core'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
test {
useJUnitPlatform()
}