-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
50 lines (42 loc) · 1.08 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
plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.eriwen.gradle.css' version '2.14.0'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'css'
group 'net.querz.mcmapviewer'
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://jitpack.io/'
}
}
configurations {
project.configurations.implementation.canBeResolved = true
}
dependencies {
implementation 'com.github.Querz:NBT:4192a95c9d'
implementation 'org.json:json:20201115'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
archiveFileName = "${project.name}-${project.version}-min.jar"
manifest.attributes (
'Main-Class': 'net.querz.mcmapviewer.Main',
'Application-Version': project.version,
'Class-Path': configurations.implementation.files.collect{"lib/$it.name"}.join(' ')
)
exclude 'licenses/'
from 'LICENSE'
}
shadowJar {
minimize()
archiveFileName = "${project.name}-${project.version}.jar"
configurations = [project.configurations.implementation]
manifest.attributes('Class-Path': '')
from 'LICENSE'
}