forked from bobcarroll/jira-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
70 lines (57 loc) · 1.75 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
/*
* Copyright (c) 2012-2023 IriusRisk SL. All rights reserved
*/
plugins {
id 'groovy'
id 'maven-publish'
id("org.sonarqube") version "4.0.0.2929"
id 'auth-gradle-plugin' version '1.1.4'
}
ext {
jacocoEnabled = System.properties.getProperty("jacocoEnabled") ?: "false"
}
group 'net.rcarz'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation "org.apache.httpcomponents:httpclient:4.5.13"
implementation "org.apache.httpcomponents:httpmime:4.2.5"
implementation "net.sf.json-lib:json-lib:2.4:jdk15"
implementation "joda-time:joda-time:2.3"
testImplementation "junit:junit:4.8.2"
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.1.0"
testImplementation "org.powermock:powermock-module-junit4:1.6.3"
testImplementation "org.powermock:powermock-api-mockito:1.6.3"
testImplementation "org.codehaus.groovy:groovy-all:2.4.6"
}
test {
useJUnitPlatform()
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
aws {
active = true // 'false' by default.
codeartifact {
domain = 'iriusrisk' // AWS maven domain.
repoName = 'maven' // AWS maven repository name, multiple repositories may belong to the same domain.
publish = true // Optional, to publish the artifact to the remote repository, 'false' by default.
}
}
publish {
group 'iriusrisk'
description 'recompiles the library and send to our artifacts repository'
dependsOn clean, build
test.onlyIf { false }
}
if (jacocoEnabled.toBoolean()) {
project.logger.lifecycle('Applying jacoco build file: build-jacoco.gradle')
apply from: rootProject.file("build-jacoco.gradle")
}
build.mustRunAfter clean