-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (76 loc) · 2.1 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.2'
id 'io.spring.dependency-management' version '1.1.2'
id 'maven-publish'
}
group = 'com.fluidnotions'
version = '0.3.1'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.camunda.bpm:camunda-external-task-client:7.21.0-alpha2'
implementation 'org.camunda.spin:camunda-spin-core:1.22.0'
implementation 'org.camunda.spin:camunda-spin-dataformat-json-jackson:1.22.0'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:+'//handle LocalDateTime
//NOTE: The following dependency is required for the Camunda external task client, must contain a class needed by the client
implementation 'javax.xml.bind:jaxb-api:2.3.1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
task customFatJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from sourceSets.main.output
from {
configurations.runtimeClasspath.collect {
if(it.isDirectory()) {
it
} else {
def tree = zipTree(it)
tree.matching {
exclude 'org/springframework/**'
}
}
}
}
}
def properties = new Properties()
file(project.rootDir.absolutePath + "/local.properties").withInputStream { properties.load(it) }
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/fluidnotions/spring-boot-camunda-flow")
credentials {
username = properties.getProperty('github.username')
password = properties.getProperty('github.token')
}
}
}
publications {
gpr(MavenPublication) {
artifactId = 'spring-boot-camunda-flow'
artifact customFatJar
}
}
}
publish.dependsOn customFatJar
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}