-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (69 loc) · 2.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
//file:noinspection GroovyAssignabilityCheck
plugins {
id("java")
id 'maven-publish'
}
group 'dev.epeu'
version '0.2.1'
repositories {
mavenLocal()
mavenCentral()
maven {
name = 'papermc'
url = 'https://repo.papermc.io/repository/maven-public/'
}
maven {
name = 'spigotmc'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'dmulloy2-repo'
url = 'https://repo.dmulloy2.net/repository/public/'
}
maven {
url = uri('https://repo.epeu.dev/artifactory/epeu-dev')
credentials {
username = findProperty('epeuUser') ?: System.getenv('REPO_USER')
password = findProperty('epeuPassword') ?: System.getenv('REPO_TOKEN')
}
metadataSources {
mavenPom()
gradleMetadata()
artifact()
}
}
}
dependencies {
compileOnly 'com.velocitypowered:velocity-api:3.4.0-SNAPSHOT'
annotationProcessor 'com.velocitypowered:velocity-api:3.4.0-SNAPSHOT'
compileOnly(group: 'dev.epeu', name: 'proxycore', version: '0.1.5')
compileOnly group: 'dev.epeu', name: 'servercore', version: '0.5.3'
compileOnly group: 'dev.epeu', name: 'objects', version: '0.1.0'
compileOnly 'io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT'
compileOnly group: 'org.spigotmc', name: 'spigot', version: '1.20.4-R0.1-SNAPSHOT'
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(23))
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependencies {
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
maven {
url = uri('https://repo.epeu.dev/artifactory/epeu-dev')
credentials {
username = findProperty('epeuUser') ?: System.getenv('REPO_USER')
password = findProperty('epeuPassword') ?: System.getenv('REPO_TOKEN')
}
}
}
}