forked from Crypnotic/Neutron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (57 loc) · 1.66 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
plugins {
id 'net.kyori.blossom' version '1.1.0'
id 'com.github.johnrengelman.shadow' version '4.0.4'
id 'maven-publish'
id 'java'
}
group 'me.crypnotic'
version '3.0.0-SNAPSHOT'
description 'An open-source essential suite for the Velocity proxy'
repositories {
mavenCentral()
maven {
url 'https://repo.velocitypowered.com/snapshots/'
}
maven {
url = 'https://repo.spongepowered.org/maven'
}
}
defaultTasks("clean", "build", "shadowJar")
dependencies {
compile ('org.spongepowered:configurate-hocon:3.6') {
exclude group: 'org.checkerframework', module: 'checker-qual'
exclude group: 'com.google.guava', module: 'guava'
}
compileOnly 'com.velocitypowered:velocity-api:1.0.0-SNAPSHOT'
annotationProcessor 'com.velocitypowered:velocity-api:1.0.0-SNAPSHOT'
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
}
blossom {
replaceToken '@ID@', name.toLowerCase()
replaceToken '@NAME@', name
replaceToken '@VERSION@', version
replaceToken '@DESCRIPTION@', description
}
publishing {
publications {
shadow(MavenPublication) { publication ->
from project.shadow.component(publication)
}
}
repositories {
maven {
def releasesRepoUrl = System.getenv('mavenUrl')
def snapshotsRepoUrl = System.getenv('mavenSnapshotUrl')
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
def mavenUsername = System.getenv('mavenUsername')
def mavenPassword = System.getenv('mavenPassword')
if (mavenUsername != null && mavenPassword != null) {
credentials {
username = mavenUsername
password = mavenPassword
}
}
}
}
}