-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
132 lines (109 loc) · 3.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
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 "io.spring.dependency-management" version "1.0.11.RELEASE" apply false
}
allprojects {
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "signing"
apply plugin: "io.spring.dependency-management"
repositories {
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = "UTF-8"
java {
withSourcesJar()
withJavadocJar()
}
ext {
camundaVersion = "7.15.0"
springBootVersion = "2.5.5"
bpmAssertVersion = "13.0.0"
cxfVersion = "3.4.5"
throwingFunctionVersion = "1.5.1"
}
dependencyManagement {
imports {
mavenBom "org.camunda.bpm:camunda-bom:${camundaVersion}"
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
generatedPomCustomization {
enabled = false
}
}
group = "de.cronn"
version = System.env.ARTIFACT_VERSION ?: "SNAPSHOT"
test {
useJUnitPlatform()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
testImplementation "com.pivovarit:throwing-function:${throwingFunctionVersion}"
}
def _project = it
publishing {
publications {
mavenJava(MavenPublication) {
def projectName = (_project.parent != null) ?
_project.parent.name + "-" + _project.name :
_project.name
groupId _project.group
artifactId projectName
version _project.version
from _project.components.java
pom {
name = projectName
description = "Cronn Camunda External Task Handler Extension"
url = "https://github.com/cronn/camunda-etc-extension"
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
name = "Radosław Postołowicz"
email = "[email protected]"
}
}
scm {
url = "https://github.com/cronn/camunda-etc-extension"
}
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
}
repositories {
maven {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username = _project.hasProperty('nexusUsername') ? _project.property('nexusUsername') : System.getenv('NEXUS_USERNAME')
password = _project.hasProperty('nexusPassword') ? _project.property('nexusPassword') : System.getenv('NEXUS_PASSWORD')
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
}
dependencies {
api "org.camunda.bpm:camunda-external-task-client:${camundaVersion}"
api "org.apache.commons:commons-lang3:3.12.0"
testImplementation "org.awaitility:awaitility"
testImplementation "org.camunda.spin:camunda-spin-dataformat-json-jackson"
testImplementation "org.camunda.bpm.assert:camunda-bpm-assert:13.0.0"
testImplementation "com.google.guava:guava:31.0.1-jre"
testImplementation project(":test")
}