-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
91 lines (81 loc) · 2.39 KB
/
build.gradle
File metadata and controls
91 lines (81 loc) · 2.39 KB
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
plugins {
id 'java'
id 'maven-publish'
id 'org.jreleaser' version '1.17.0'
}
group = 'gg.launchblock'
version = '0.1.0'
archivesBaseName = 'sdk-java'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral() // Use Maven Central repository
}
dependencies {
implementation 'org.apache.kafka:kafka-clients:3.9.0'
implementation 'org.slf4j:slf4j-api:2.0.9'
implementation 'org.slf4j:slf4j-simple:2.0.9'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.16.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.16.1'
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'gg.launchblock'
artifactId = 'sdk-java'
from components.java
pom {
name = 'LaunchBlock Java SDK'
description = 'A Java SDK for interacting with our API'
url = 'https://github.com/LaunchBlockMC/sdk-java'
inceptionYear = '2025'
licenses {
license {
name = 'Apache-2.0'
url = 'https://spdx.org/licenses/Apache-2.0.html'
}
}
scm {
connection = 'scm:git:https://github.com/aalmiray/app.git'
developerConnection = 'scm:git:ssh://github.com/aalmiray/app.git'
url = 'http://github.com/aalmiray/app'
}
developers {
developer {
id = 'LaunchBlockMC'
name = 'LaunchBlock Team'
email = 'help@launchblock.gg'
}
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
jreleaser {
signing {
active = 'ALWAYS'
armored = true
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
stagingRepository('build/staging-deploy')
}
}
}
}
}