This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
88 lines (71 loc) · 2.46 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
ext {
kotlin_version = '1.4.21'
coroutines_version = '1.3.1'
spigot_api_version = '1.14.4-R0.1-SNAPSHOT'
// protcollib_version = '4.5.0-SNAPSHOT'
slf4j_version = '1.8.0-beta4'
exposed_version = '0.14.1'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group = 'click.seichi'
version = '1.2-SNAPSHOT'
apply plugin: 'kotlin'
sourceCompatibility = targetCompatibility = 1.8
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
processResources {
filteringCharset = 'UTF-8'
from(sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter(ReplaceTokens, tokens: [version: project.version])
filter(ReplaceTokens, tokens: [name: project.rootProject.name])
}
}
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
url = 'https://jitpack.io'
}
maven {
name = 'exposed-repo'
url = 'https://dl.bintray.com/kotlin/exposed/'
}
// ProtocolLib
// maven {
// name = 'dmulloy2-repo'
// url = 'http://repo.dmulloy2.net/nexus/repository/public/'
// }
}
configurations {
embed
compile.extendsFrom(embed)
}
dependencies {
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlin_version
compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlin_version
compile group: 'org.spigotmc', name: 'spigot-api', version: spigot_api_version
// compile group: 'org.spigotmc', name: 'spigot', version: spigot_api_version
embed group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlin_version
// compile group: 'com.comphenix.protocol', name: 'ProtocolLib', version: protcollib_version
embed group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutines_version
embed group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-rx2', version: coroutines_version
embed group: "org.slf4j", name: "slf4j-log4j12", version: slf4j_version
embed group: "org.jetbrains.exposed", name: "exposed", version: exposed_version
compile fileTree(dir: "libs", include: "*.jar")
}
jar {
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
}