-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.gradle
98 lines (82 loc) · 2.18 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
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
classpath "de.marcphilipp.gradle:nexus-publish-plugin:0.4.0"
}
}
plugins {
id 'io.codearte.nexus-staging' version '0.30.0'
id "org.sonarqube" version "5.1.0.4882"
}
sonarqube {
properties {
property "sonar.projectKey", "OpenAPITools_openapi-style-validator"
property "sonar.organization", "openapitools"
property "sonar.host.url", "https://sonarcloud.io"
}
}
wrapper {
gradleVersion = '7.6.2'
}
allprojects {
version = '1.12-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'de.marcphilipp.nexus-publish'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
test {
if(project.name != 'openapi-style-validator-maven-plugin') {
useJUnitPlatform()
}
}
repositories {
mavenCentral()
}
group = 'org.openapitools.openapistylevalidator'
dependencies {
implementation 'org.slf4j:slf4j-api:2.0.16'
testCompileOnly 'org.junit.jupiter:junit-jupiter-params:5.11.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.0'
}
signing {
useGpgCmd()
sign(publishing.publications)
}
tasks.withType(Sign) {
onlyIf {
project.hasProperty('signing.gnupg.keyName')
}
}
nexusPublishing {
repositories {
sonatype {
username = System.getenv('SONATYPE_USER') ?: ''
password = System.getenv('SONATYPE_PASSWORD') ?: ''
}
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport
}
nexusStaging {
packageGroup = 'org.openapitools'
username = System.getenv('SONATYPE_USER') ?: ''
password = System.getenv('SONATYPE_PASSWORD') ?: ''
}