-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
49 lines (41 loc) · 1.24 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
plugins {
id "java"
}
repositories {
mavenCentral()
maven {url "https://berndivader.pii.at/archiva/repository/public/"}
maven {url "https://mvn.lumine.io/repository/maven-public/"}
maven {url "https://oss.sonatype.org/content/repositories/snapshots"}
maven {url "https://oss.sonatype.org/content/repositories/central"}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(16))
}
dependencies {
implementation "org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT"
implementation "io.lumine:Mythic-Dist:5.5.1"
}
processResources {
duplicatesStrategy=DuplicatesStrategy.INCLUDE
print("Process version....")
Properties properties=new Properties()
File file=new File("$project.projectDir/gradle.properties")
if(file.exists())
{
properties.load(file.newDataInputStream())
project.version = properties.version
println("Done!")
}
else
{
project.version = "0.00.0"
println("Warning! gradle.properties file is missing!")
}
print("Process plugin.yml....")
inputs.property "version", project.version
from (sourceSets.main.resources.srcDirs) {
include "plugin.yml"
expand "version": project.version
}
println("Done!")
}