-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
75 lines (58 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
74
75
plugins {
id 'net.minecrell.licenser' version '0.4.1'
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
allprojects {
description = 'Utility plugin to extract archives and compress files.'
group = 'com.dscalzi'
ext {
name = 'ZipExtractor'
author = 'Daniel Scalzi (TheKraken7)'
url = 'https://github.com/dscalzi/ZipExtractor'
}
}
apply plugin: 'eclipse'
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'net.minecrell.licenser'
sourceCompatibility = 1.8
targetCompatibility = 1.8
def major = '2'
def minor = '3'
def spongeRevision = '1'
def bukkitRevision = '1'
version = "${major}.${minor}.${project.name.endsWith('Sponge') ? spongeRevision : bukkitRevision}"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations {
testImplementation.extendsFrom compileOnly
}
processResources {
from "../LICENSE.txt"
}
license {
sourceSets = [project.sourceSets.main]
exclude '**/config.yml'
header = rootProject.file('HEADER.txt')
ext {
name = 'Daniel D. Scalzi'
year = '2016-2020'
url = 'https://github.com/dscalzi/ZipExtractor'
}
}
jar {
baseName = project.name
manifest {
attributes 'Implementation-Version': version, 'Specification-Version': version
}
}
build {
dependsOn clean
dependsOn shadowJar
jar.mustRunAfter clean
shadowJar.mustRunAfter jar
}
}