-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (87 loc) · 2.04 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
plugins {
id 'java'
id "org.sonarqube" version "5.0.0.4638"
id 'maven-publish'
id 'org.jreleaser' version '1.14.0'
}
group = 'cat.bernado'
version = '0.0.1'
java {
sourceCompatibility = '21'
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
implementation 'io.github.classgraph:classgraph:4.8.154'
implementation 'org.springframework:spring-context:6.1.12'
implementation 'org.springframework.boot:spring-boot-autoconfigure:3.3.3'
implementation 'org.slf4j:slf4j-api:1.7.25'
testImplementation 'org.mockito:mockito-core:3.7.7'
testImplementation 'org.mockito:mockito-junit-jupiter:3.7.7'
}
tasks.named('test') {
useJUnitPlatform()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'cat.bernado'
artifactId = 'simplebus'
from components.java
pom {
name = 'SimpleBus'
description = 'A simple command bus pattern implementation for Spring Boot'
url = 'https://github.com/orbeji/SimpleBus'
inceptionYear = '2024'
licenses {
license {
name = 'MIT'
url = 'https://choosealicense.com/licenses/mit/'
}
}
developers {
developer {
id = 'orbeji'
name = 'orbeji'
}
}
scm {
connection = 'scm:git:https://github.com/orbeji/SimpleBus.git'
developerConnection = 'scm:git:ssh://github.com/orbeji/SimpleBus.git'
url = 'http://github.com/orbeji/SimpleBus'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
jreleaser {
environment {
variables = '.jreleaser/config.toml'
}
signing {
active = 'ALWAYS'
armored = true
}
deploy {
maven {
/* Portal Publisher API*/
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
stagingRepository('build/staging-deploy')
}
}
}
}
}