-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
105 lines (85 loc) · 3 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
buildscript {
ext {
kotlinVersion = '1.4.20'
kotlinLanguageVersion = '1.4'
kotlinApiVersion = '1.4'
spigotVersion = '1.17.1-R0.1-SNAPSHOT'
javaVersion = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: kotlinVersion
}
}
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}
apply plugin: 'kotlin'
group = 'jp.aoichaan0513'
version = '1.1.6'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
repositories {
mavenCentral()
google()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/groups/public/' }
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
maven { url 'https://jitpack.io' }
}
dependencies {
// Kotlin
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: '1.4.1'
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-script-util'
implementation 'com.github.supabase-community:postgrest-kt:0.2.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
// Minecraft
compileOnly group: 'org.spigotmc', name: 'spigot-api', version: spigotVersion
compileOnly group: 'net.luckperms', name: 'api', version: '5.3'
// Bot
implementation group: 'net.dv8tion', name: 'JDA', version: '4.3.0_346'
// ツールライブラリ
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
// あったほうがいいライブラリ
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
implementation group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
implementation group: 'com.github.kevinsawicki', name: 'http-request', version: '6.0'
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
compileKotlin {
kotlinOptions {
jvmTarget = javaVersion
apiVersion = kotlinLanguageVersion
languageVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = javaVersion
apiVersion = kotlinLanguageVersion
languageVersion = kotlinApiVersion
}
}