-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (55 loc) · 1.84 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
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'java'
}
allprojects{
repositories {
mavenLocal()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://maven.glass-launcher.net/repo"}
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.projectlombok:lombok:1.18.10'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
// https://github.com/adamfisk/LittleProxy/releases/download
testCompile group: 'org.littleshoot', name: 'littleproxy', version: '1.1.2'
// https://repo1.maven.org/maven2/com/github/ganskef/littleproxy-mitm
compile group: 'com.github.ganskef', name: 'littleproxy-mitm', version: '1.1.0'
// https://repo1.maven.org/maven2/com/google/code/gson/gson
implementation 'com.google.code.gson:gson:2.8.6'
// https://mvnrepository.com/artifact/commons-validator/commons-validator
compile group: 'commons-validator', name: 'commons-validator', version: '1.6'
compile group: "net.glasslauncher.repo", name: "glass-site-java-api", version: "0.2"
compile group: "net.glasslauncher", name: "commons", version: "1.0"
}
group 'glass-launcher'
version '0.4.5'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task listrepos {
doLast {
println "Repositories:"
project.repositories.each { println "Name: " + it.name + "; url: " + it.url }
}
}
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version,
'Main-Class': 'net.glasslauncher.legacy.Main'
}
/*from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}*/
from {
"dependencies.gradle"
}
}