Skip to content

Commit eb93acc

Browse files
Compile for Spigot 1.12
1 parent d02d795 commit eb93acc

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

build.gradle

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.apache.tools.ant.filters.ReplaceTokens
22

33
buildscript {
4-
ext.kotlin_version = '1.0.5-2'
4+
ext.kotlin_version = '1.1.3-2'
55

66
repositories {
77
mavenCentral()
@@ -23,13 +23,10 @@ plugins {
2323
apply plugin: 'kotlin'
2424

2525
group = 'gg.obsidian'
26-
version = '1.1.0'
26+
version = '2.0.0'
2727
description = """Use Discourse group as a whitelist"""
2828
ext.url = 'https://github.com/the-obsidian/DiscourseBridge'
2929

30-
sourceCompatibility = 1.8
31-
targetCompatibility = 1.8
32-
3330
repositories {
3431
maven { url 'https://maven-central.storage.googleapis.com' }
3532
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public/' }
@@ -41,12 +38,20 @@ repositories {
4138
}
4239

4340
dependencies {
44-
compile group: 'org.spigotmc', name: 'spigot-api', version:'1.11-R0.1-SNAPSHOT'
45-
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version:'1.0.0-rc-1036'
46-
compile group: 'net.dv8tion', name: 'JDA', version:'1.3.0_188'
41+
compile group: 'org.spigotmc', name: 'spigot-api', version:'1.12-R0.1-SNAPSHOT'
42+
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version:'1.1.3-2'
4743
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.2.0'
4844
}
4945

46+
compileKotlin {
47+
sourceCompatibility = JavaVersion.VERSION_1_8
48+
targetCompatibility = JavaVersion.VERSION_1_8
49+
50+
kotlinOptions {
51+
jvmTarget = "1.8"
52+
}
53+
}
54+
5055
processResources {
5156
filter ReplaceTokens, tokens: [
5257
'DESCRIPTION': project.property('description'),

0 commit comments

Comments
 (0)