-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
103 lines (80 loc) · 2.82 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer
plugins {
`java-library`
`maven-publish`
`idea`
id("io.freefair.lombok") version "6.3.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "ru.spliterash"
version = "1.0.11"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
tasks.assemble { dependsOn(tasks.shadowJar) }
tasks.shadowJar {
mergeServiceFiles {
include("META-INF/spring/**")
}
append("META-INF/spring.handlers")
append("META-INF/spring.schemas")
append("META-INF/spring.tooling")
transform(PropertiesFileTransformer::class.java) {
paths = listOf("META-INF/spring.factories")
mergeStrategy = "append"
}
dependencies {
exclude(dependency("io.projectreactor:reactor-core"))
exclude(dependency("org.reactivestreams:reactive-streams"))
}
}
repositories {
mavenCentral()
maven {
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
name = "spigot-repo"
}
maven {
name = "vault-repo"
url = uri("https://nexus.hc.to/content/repositories/pub_releases")
}
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT")
compileOnly("net.kyori:adventure-api:4.11.0")
compileOnly("net.kyori:adventure-text-minimessage:4.11.0")
api(platform("org.springframework.boot:spring-boot-dependencies:2.7.5"))
api("org.springframework.boot:spring-boot-starter")
api("org.springframework.boot:spring-boot-starter-aop")
api("org.springframework.boot:spring-boot-starter-data-mongodb")
api("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
api("com.fasterxml.jackson.core:jackson-databind")
api("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
api("com.fasterxml.jackson.module:jackson-module-kotlin") {
isTransitive = false
}
runtimeOnly("mysql:mysql-connector-java")
api("org.apache.commons:commons-lang3:3.12.0")
api("commons-io:commons-io:2.11.0")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:2.7.3")
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
repositories {
maven {
name = "nexus"
url = uri("https://repo.spliterash.ru/spring-spigot")
credentials {
username = findProperty("SPLITERASH_NEXUS_USR")?.toString()
password = findProperty("SPLITERASH_NEXUS_PSW")?.toString()
}
}
}
}
}
}