-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
50 lines (40 loc) · 1.06 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
}
version = pluginVersion
group = 'dev.array21'
repositories {
mavenCentral()
maven{ url "https://hub.spigotmc.org/nexus/content/repositories/snapshots" }
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
dependencies {
//Spigot API
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
}
task testJar(type: Jar) {
description 'Build a test Jar'
archiveClassifier = 'DEV'
from sourceSets.main.output
destinationDirectory = file("$rootDir/server/plugins")
}
task releaseJar(type: Jar) {
description 'Build a release Jar'
archiveClassifier = 'RELEASE'
from sourceSets.main.output
destinationDirectory = file("$rootDir/releases")
}
//This task is for GitHub Actions only
task ghActions(type: Jar) {
description 'GitHub Actions Task. Do not use in regular development!'
version = ''
archiveClassifier = ''
archiveBaseName = 'output'
from sourceSets.main.output
destinationDirectory = file("$rootDir/actions")
}