forked from YuQWorks/YuQ-Mirai-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (44 loc) · 1.26 KB
/
build.gradle.kts
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("com.github.jengelman.gradle.plugins:shadow:5.2.0")
}
}
plugins {
java
id("com.github.johnrengelman.shadow") version "5.2.0"
eclipse
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
// Gradle 的 扫包是从上至下的,按照当前顺序,则为: 冰糕Luminous的仓库 -> 阿里云的仓库 -> 中央库 -> jcenter
// YuQ-Mirai 的依赖位于中央库和 jcenter。
// Dev 包均位于 IceCream 的 Maven 仓库。
// 这是由 冰糕Luminous 提供的 Maven 仓库镜像。
maven("https://oss.heavenark.com/repository/MavenPublic/")
// 这是由 阿里云 提供的 Maven 仓库镜像。
maven("https://maven.aliyun.com/repository/public")
// 需要同时启用 中央库 及 jcenter。
mavenCentral()
jcenter()
maven("https://maven.IceCreamQAQ.com/repository/maven-public/")
}
dependencies {
implementation("com.IceCreamQAQ.YuQ:YuQ-Mirai:0.1.0.0-DEV2")
}
tasks {
jar {
finalizedBy(shadowJar)
}
shadowJar {
manifest {
attributes["Main-Class"] = "wiki.IceCream.yuq.demo.Start"
}
from("./") {
include("build.gradle")
}
}
}