generated from KlainStom/template-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (46 loc) · 1.04 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
buildscript {
repositories {
maven { url 'https://repo.spongepowered.org/maven' }
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'net.kyori.blossom' version '1.3.0'
id 'java'
}
def displayName = 'AFKstom'
group 'com.github.klainstom'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly('com.github.Minestom:Minestom:-SNAPSHOT')
}
blossom {
replaceToken('$version$', version)
replaceToken('$group$', group)
replaceToken('$name$', displayName)
}
processResources.expand(
'version': version,
'group': group,
'name': displayName
)
shadowJar {
archiveBaseName.set(displayName)
archiveClassifier.set('')
archiveVersion.set(project.version.toString())
}
test {
useJUnitPlatform()
}
build {
dependsOn(shadowJar)
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}