This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
79 lines (63 loc) · 1.77 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
classpath 'gradle.plugin.net.minecrell:licenser:0.4.1'
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'net.minecrell.licenser'
repositories {
mavenCentral()
mavenLocal()
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
implementation 'org.jetbrains:annotations:20.1.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
group = project.pluginGroup
version = project.pluginVersion
sourceCompatibility = 11
targetCompatibility = 11
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
build.dependsOn(shadowJar)
shadowJar {
dependencies {
include(dependency(':debuggery-common'))
}
setArchiveClassifier(null)
from rootProject.file("LICENSE.md")
}
test {
testLogging.showStandardStreams = true
useJUnitPlatform()
}
// updateLicenses | checkLicenses
license {
ext.name = 'Debuggery'
header = rootProject.file('HEADER.txt')
}
}