-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (44 loc) · 1.21 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'eclipse'
}
version = '1.0.2'
group = 'dev.array21'
sourceCompatibility = 1.16
targetCompatibility = 1.16
task processSource(type: Sync) {
from sourceSets.main.java
inputs.property 'version', version
filter(ReplaceTokens, tokens: [VERSION: version])
into "$buildDir/src"
}
compileJava {
source = processSource.outputs
}
repositories {
mavenCentral()
maven{ url "https://hub.spigotmc.org/nexus/content/repositories/snapshots" }
maven{ url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
compileOnly 'dev.array21:dutchycore:0.1.0'
compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT'
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
task ghActions(type: Jar) {
description 'GitHub Actions task. Not used for regular development'
version = ''
archiveClassifier = ''
archiveBaseName = 'output'
from sourceSets.main.output
destinationDirectory = file("$rootDir/actions")
}
task testJar(type: Jar) {
description 'Build a test Jar'
archiveClassifier = 'DEV'
from sourceSets.main.output
destinationDirectory = file("$rootDir/../DutchyCore/server/plugins/DutchyCore/modules/")
}