generated from raidcraft/raidcraft-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (60 loc) · 1.71 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
plugins {
id 'java-library'
id 'jacoco'
id 'idea'
id 'io.freefair.lombok' version '6.4.3' apply false
id 'io.ebean' version '13.1.0' apply false
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'jacoco'
apply plugin: 'idea'
apply plugin: 'io.freefair.lombok'
apply plugin: 'io.ebean'
apply from: "$rootDir/gradle/jacoco.gradle"
apply from: "$rootDir/gradle/publish.gradle"
sourceCompatibility = 11
targetCompatibility = 11
ext {
mcVersion = project.property("mcVersion")
}
group project.property("group")
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
archivesBaseName = project.property("pluginName")
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url = 'https://jitpack.io' }
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
implementation "org.spigotmc:spigot-api:${mcVersion}-R0.1-SNAPSHOT"
api "com.github.MilkBowl:VaultAPI:1.7"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
ignoreFailures = false
}
processResources {
project.properties.put("version", this.version)
expand project.properties
}
defaultTasks 'build'
}