This repository was archived by the owner on Feb 23, 2024. It is now read-only.
forked from earthsworth/LunarClient-CN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (53 loc) · 1.48 KB
/
build.gradle
File metadata and controls
68 lines (53 loc) · 1.48 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
/*
LunarCN Client
Developed by cubewhy and contributors
License with GPLv3
https://github.com/CubeWhyMC/LunarClient-CN
* */
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.9.0'
id "com.github.johnrengelman.shadow" version "8.0.0"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
allprojects {
group = 'top.lunarclient'
version = '1.4.1'
repositories {
maven { url = 'https://maven.aliyun.com/repository/google' }
maven { url = 'https://maven.aliyun.com/repository/central' }
maven { url = 'https://maven.aliyun.com/repository/public' }
mavenCentral()
}
}
compileJava.options.encoding = "UTF-8"
configurations {
include
implementation.extendsFrom(include)
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
dependencies {
include 'com.google.code.gson:gson:2.10.1'
include "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}
jar {
manifest.attributes(
"Main-Class": "top.lunarclient.Main"
)
}
shadowJar {
archiveClassifier.set("fatjar")
configurations = [project.configurations.include]
duplicatesStrategy DuplicatesStrategy.EXCLUDE
exclude "native-binaries/**"
exclude "LICENSE.txt"
}
kotlin {
jvmToolchain(17)
}
jar.dependsOn(shadowJar)