generated from sVoxelDev/spigot-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
94 lines (73 loc) · 2.04 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'kr.entree.spigradle' version '2.2.4'
id 'java-library'
id 'jacoco'
id 'io.ebean' version '12.9.1'
id 'idea'
id "io.freefair.lombok" version "5.3.3.3"
}
apply from: "$rootDir/gradle/jacoco.gradle"
apply from: "$rootDir/gradle/publish.gradle"
if (project.hasProperty("local_script")) {
apply from: file(local_script + "/build.local.gradle")
}
sourceCompatibility = 16
targetCompatibility = 16
ext {
mcVersion = project.property("mcVersion")
}
group project.property("group")
spigot {
name = project.property("pluginName")
authors = [project.property("author")]
apiVersion = project.property("apiVersion")
load = STARTUP
// depends = ['']
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
annotationProcessor 'io.ebean:querybean-generator:12.12.1'
implementation spigot(mcVersion)
implementation group: 'commons-io', name: 'commons-io', version: '2.10.0'
api 'io.ebean:ebean:12.12.0'
api 'io.ebean:ebean-querybean:12.12.1'
implementation 'io.ebean:ebean-migration:12.12.1'
testImplementation group: 'com.h2database', name: 'h2', version: '1.4.200'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
testImplementation 'org.mockito:mockito-core:3.12.4'
testImplementation 'org.assertj:assertj-core:3.21.0'
testImplementation 'io.ebean:ebean-test:12.12.1'
}
shadowJar {
classifier = ''
}
tasks.build.dependsOn(shadowJar)
tasks.publish.dependsOn(shadowJar)
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
ignoreFailures = true
}
processResources {
project.properties.put("version", this.version)
expand project.properties
}
defaultTasks 'build'