-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (34 loc) · 1.09 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "7.1.0"
}
group 'me.jishuna'
version '1.0.0'
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://oss.sonatype.org/content/repositories/central' }
}
dependencies {
compileOnly group: 'org.spigotmc', name: 'spigot', version: '1.18.1-R0.1-SNAPSHOT'
}
shadowJar {
minimize()
setArchiveName('ForceOfNature-' + this.version + '.jar')
destinationDirectory = file("./target/")
}
build {
dependsOn shadowJar
}
processResources {
duplicatesStrategy = DuplicatesStrategy.WARN
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
shadowJar.shouldRunAfter build
build.shouldRunAfter subprojects.build