-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (67 loc) · 2.12 KB
/
Copy pathbuild.gradle
File metadata and controls
85 lines (67 loc) · 2.12 KB
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
/*
* Copyright (c) 2019-2020 Warp <legal@warp.pw>
* All Rights Reserved.
*
* This software is proprietary and is designed and intended for internal use only.
* Unauthorized use, replication, distribution, or modification of this software
* in any capacity is unlawful and punishable by the full extent of the law.
*/
plugins {
id 'java'
id 'maven'
id 'com.github.johnrengelman.shadow' version '4.0.0'
}
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
configurations {
extraLibs
}
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
name 'jitpack'
url 'https://jitpack.io'
}
maven { url 'https://m1ke.co/gradle/repo' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven {
name "GitHubPackages"
url "https://maven.pkg.github.com/bywarp/lightkit4j"
credentials {
if (System.getenv("CI") == null || System.getenv("CI").toLowerCase() != 'true') {
username = GITHUB_USER
password = GITHUB_TOKEN
return
}
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
dependencies {
compile group: 'co.bywarp', name: 'lightkit', version: '0.1.3', changing: true
compileOnly group: 'org.spigotmc', name: 'spigot', version: '1.8.8-R0.1-SNAPSHOT'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.10'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.10'
configurations.compile.extendsFrom(configurations.extraLibs)
}
shadowJar {
destinationDir = file(melonExportTarget)
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
classifier = null
manifest {
attributes 'Main-Class': 'co.bywarp.mapagent.MapAgent'
}
}