-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
114 lines (79 loc) · 5.02 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.0/userguide/tutorial_java_projects.html
*/
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building a CLI application.
id 'application'
}
application {
// Define the main class for the application.
apply plugin: 'application'
mainClassName = 'xueli.craftgame.Main'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
mavenCentral()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
dependencies {
implementation 'org.jetbrains:annotations:20.1.0'
compile fileTree(dir:'libs/',include:['*.jar'])
implementation 'com.google.code.gson:gson:2.8.6'
compile group: 'commons-io', name: 'commons-io', version: '2.8.0'
compile group: 'org.mozilla', name: 'rhino', version: '1.7.13'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.13.1'
compile group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version, changing: true
runtime group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version, changing: true, classifier: 'natives-windows'
runtime group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version, changing: true, classifier: 'natives-linux'
runtime group: 'org.lwjgl', name: 'lwjgl', version: lwjgl_version, changing: true, classifier: 'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version, changing: true
runtime group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version, changing: true, classifier: 'natives-windows'
runtime group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version, changing: true, classifier: 'natives-linux'
runtime group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjgl_version, changing: true, classifier: 'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version: lwjgl_version, changing: true
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version: lwjgl_version, changing: true, classifier: 'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version: lwjgl_version, changing: true, classifier: 'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version: lwjgl_version, changing: true, classifier: 'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-openal', version: lwjgl_version, changing: true
compile group: 'org.lwjgl', name: 'lwjgl-openal', version: lwjgl_version, changing: true, classifier: 'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl-openal', version: lwjgl_version, changing: true, classifier: 'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-openal', version: lwjgl_version, changing: true, classifier: 'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl-nanovg', version: lwjgl_version, changing: true
compile group: 'org.lwjgl', name: 'lwjgl-nanovg', version: lwjgl_version, changing: true, classifier: 'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl-nanovg', version: lwjgl_version, changing: true, classifier: 'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl-nanovg', version: lwjgl_version, changing: true, classifier: 'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-stb', version: lwjgl_version, changing: true
compile group: 'org.lwjgl', name: 'lwjgl-stb', version: lwjgl_version, changing: true, classifier: 'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl-stb', version: lwjgl_version, changing: true, classifier: 'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl-stb', version: lwjgl_version, changing: true, classifier: 'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-jawt', version: '3.2.3'
//compile group: 'org.lwjglx', name: 'lwjgl3-awt', version: '0.1.6'
compile group: 'slick-util', name: 'slick-util', version: '1.0.0'
compile group: 'org.iq80.leveldb', name: 'leveldb', version: '0.12'
compile 'com.flowpowered:flow-nbt:1.0.0'
implementation group: 'net.java.dev.jna', name: 'jna-platform', version: '5.7.0'
implementation group: 'io.netty', name: 'netty-all', version: '4.1.63.Final'
}
def releaseTime() {
return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
}
jar {
manifest {
attributes 'Implementation-Title': 'CraftGame',
'Implementation-Version': "Alpha-${releaseTime()}"
}
}