-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
84 lines (70 loc) · 2.71 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
ext.kotlin_version = '1.2.10'
repositories {
mavenCentral()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
}
configurations.all {
resolutionStrategy {
force 'org.ow2.asm:asm:6.0_BETA'
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
group = 'gg.obsidian'
version = '4.0.0'
description = """Bridge chat between Minecraft and Discord"""
ext.url = 'https://github.com/the-obsidian/DiscordBridge'
ext.modid = 'discordbridge-obsidian'
processResources {
filter ReplaceTokens, tokens: [
'DESCRIPTION': project.property('description'),
'URL' : project.property('url'),
'VERSION' : project.property('version'),
'MODID' : project.property('modid')
]
}
repositories {
maven { url 'https://github.com/DV8FromTheWorld/Maven-Repository/raw/master/repo' }
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
shadowJar {
classifier = null
dependencies {
// Kotlin Runtime
include(dependency("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"))
// Dependencies for JDA
include(dependency('net.dv8tion:JDA:3.3.1_286'))
include(dependency('com.squareup.okhttp3:okhttp:'))
include(dependency('com.squareup.okio:okio'))
include(dependency('com.neovisionaries:nv-websocket-client'))
include(dependency('org.json:json'))
include(dependency('org.slf4j:slf4j-api'))
include(dependency('org.slf4j:slf4j-simple'))
// Dependency for SnakeYAML
include(dependency(group: 'org.yaml', name: 'snakeyaml', version: '1.19'))
// Dependencies for PegDown
include(dependency(group: 'org.pegdown', name:'pegdown', version: '1.6.0'))
include(dependency(group: 'commons-lang', name:'commons-lang', version: '2.3'))
include(dependency('org.parboiled:parboiled-core'))
include(dependency('org.parboiled:parboiled-java'))
// Dependency for CleverbotAPI
include(dependency(group: 'com.michaelwflaherty', name: 'cleverbotapi', version: '1.0.1'))
}
}
}