forked from Willsr71/SlashServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
37 lines (30 loc) · 888 Bytes
/
build.gradle
File metadata and controls
37 lines (30 loc) · 888 Bytes
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
plugins {
id 'java-library'
id 'net.kyori.indra' version '2.0.6'
id 'net.kyori.indra.git' version '2.0.6'
id 'net.kyori.blossom' version '1.3.0'
}
group 'uk.co.n3fs.mc'
version '2.0.0-SNAPSHOT'
description 'A plugin to add slash aliases for servers.'
def commit = indraGit.isPresent() ? indraGit.commit().abbreviate(7).name() : 'unknown'
def fullVersion = "${version}".replace('-SNAPSHOT', "-SNAPSHOT-${commit}")
repositories {
maven { url 'https://nexus.velocitypowered.com/repository/maven-public/' }
}
dependencies {
compileOnly 'com.velocitypowered:velocity-api:3.0.1'
annotationProcessor 'com.velocitypowered:velocity-api:3.0.1'
}
blossom {
replaceToken '@version@', fullVersion
}
indra {
javaVersions {
target 8
minimumToolchain 16
}
}
tasks.withType(Jar.class).configureEach {
archiveVersion.set("$fullVersion")
}