forked from GeorgeV220/LibraryLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (80 loc) · 2.55 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'kr.entree.spigradle' version '2.4.3'
id 'io.freefair.lombok' version '6.6.2'
id 'java'
id 'jacoco'
id 'idea'
}
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 = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
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()
papermc()
bungeecord()
codemc()
maven { url = 'https://jitpack.io' }
maven { url 'https://repo.georgev22.com/releases' }
}
dependencies {
compileOnly 'org.apache.commons:commons-lang3:3.12.0'
compileOnly 'com.google.guava:guava:31.1-jre'
compileOnly 'org.jetbrains:annotations:24.0.1'
testImplementation 'com.georgev22:api:7.3.0'
testImplementation 'org.jetbrains:annotations:24.0.1'
testImplementation 'commons-io:commons-io:2.11.0'
testImplementation 'org.apache.logging.log4j:log4j-core:2.19.0'
testImplementation 'org.yaml:snakeyaml:1.33'
testImplementation 'commons-lang:commons-lang:2.6'
testImplementation 'org.jline:jline:3.21.0'
testImplementation 'net.minecrell:terminalconsoleappender:1.3.0'
testImplementation 'org.jline:jline-terminal-jna:3.21.0'
testImplementation 'net.java.dev.jna:jna:5.12.1'
testImplementation 'org.apache.logging.log4j:log4j-jul:2.19.0'
testImplementation 'com.lmax:disruptor:3.4.4'
}
shadowJar {
classifier = ''
}
tasks.build.dependsOn(shadowJar)
tasks.publish.dependsOn(shadowJar)
tasks.prepareSpigotPlugins.dependsOn(shadowJar)
tasks.generateSpigotDescription.enabled = false
task testJar(type: Jar, dependsOn: testClasses) {
classifier = 'test'
manifest {
attributes 'Manifest-Version': '1.0', 'Implementation-Title': 'xyz', 'Implementation-Version': version, 'Main-Class': 'com.georgev22.api.tests.Tests'
}
from sourceSets.test.output + sourceSets.main.output
}
test {
useJUnitPlatform()
testLogging {
events "skipped", "failed"
}
ignoreFailures = false
}
processResources {
project.properties.put("version", this.version)
expand project.properties
}
defaultTasks 'build'