-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
executable file
·99 lines (84 loc) · 2.7 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
95
96
97
98
99
plugins {
id "java-library"
id "base"
id "jacoco"
id "maven-publish"
id "io.fairyproject" version "0.7.1b7-SNAPSHOT"
id "io.spring.dependency-management" version "1.1.0"
}
group = "dev.imanity.brew"
version = "0.4.1b1-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
maven { url = "https://jitpack.io" }
maven { url = "https://papermc.io/repo/repository/maven-public/" }
maven { url = "https://repo.codemc.io/repository/maven-releases/" }
}
fairy {
mainPackage = "io.fairyproject.brew"
}
dependencies {
compileOnly "io.fairyproject:bukkit-platform"
compileOnly "io.fairyproject:bukkit-timer"
compileOnly "io.fairyproject:module.config"
testImplementation "io.fairyproject:bukkit-platform"
testImplementation "io.fairyproject:bukkit-tests"
testImplementation "io.fairyproject:bukkit-timer"
testImplementation "io.fairyproject:module.config"
}
dependencies {
compileOnly "org.projectlombok:lombok:1.18.24"
annotationProcessor "org.projectlombok:lombok:1.18.24"
compileOnly "org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT"
testImplementation "org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT"
testImplementation "org.imanity.spigot:1.16.5:1.16.5"
testImplementation "dev.imanity.mockbukkit:MockBukkit1.16:1.0.19"
testImplementation "org.apache.commons:commons-lang3:3.12.0"
compileOnly "org.jetbrains:annotations:23.0.0"
compileOnly "com.github.ben-manes.caffeine:caffeine:2.9.2"
}
test {
useJUnitPlatform()
}
publish.dependsOn build
sourceCompatibility = targetCompatibility = "1.8"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
if (findProperty("deploy.imanityLibraries") == "true") {
tasks.jar.configure {
classifier = "sources"
}
publishing {
publications {
mavenJava(MavenPublication) { publication ->
from components.java
pom {
name = "Brew " + project.name
description = "Brew API"
}
}
}
repositories {
maven {
credentials {
username findProperty("imanityLibrariesUsername")
password findProperty("imanityLibrariesPassword")
}
url "https://maven.imanity.dev/repository/imanity-libraries/"
}
}
}
}
test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
}
}