-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
39 lines (33 loc) · 931 Bytes
/
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
plugins {
id 'java'
}
group = 'com.github.koxsosen'
version = '0.1.3'
repositories {
mavenCentral()
maven {
name = 'velocitypowered-repo'
url = 'https://repo.velocitypowered.com/releases/'
}
maven {
name = 'minecraft-libraries'
url = 'https://libraries.minecraft.net/'
}
maven {
name = 'spongepowered-repo'
url = 'https://repo.spongepowered.org/maven'
}
}
dependencies {
compileOnly 'com.velocitypowered:velocity-api:3.0.1'
annotationProcessor 'com.velocitypowered:velocity-api:3.0.1'
implementation 'net.kyori:adventure-text-minimessage:4.10.1'
}
import org.apache.tools.ant.filters.ReplaceTokens
task processSources(type: Sync) {
from sourceSets.main.java.srcDirs
inputs.property 'version', version
filter ReplaceTokens, tokens: [version: version]
into "$buildDir/src"
}
compileJava.source = processSources.outputs