Skip to content

Commit

Permalink
Moved spigot's functions to it's own module
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Oct 21, 2016
1 parent 965bc3d commit f68a58c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 42 deletions.
12 changes: 0 additions & 12 deletions BukkitPlugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
repositories {
maven { url = bukkit_repo }
}

dependencies {
compile 'org.bukkit:bukkit:1.10.2-R0.1-SNAPSHOT'
compile project(':BungeeChat')
}


shadowJar {
dependencies {
include project(':BungeeChat')
}
}

processResources {
Expand Down
14 changes: 14 additions & 0 deletions SpigotPlugin/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dependencies {
compile 'org.spigotmc:spigot-api:1.10.2-R0.1-SNAPSHOT'
compile project(':BungeeChat')
compile(project(':BukkitPlugin')) {
exclude module:'bukkit'
}
}

shadowJar {
dependencies {
include project(':BungeeChat')
include project(':BukkitPlugin')
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@file:JvmName("SpigotUtil")
package br.com.gamemods.kotlinfun.bukkit
package br.com.gamemods.kotlinfun.spigot

import br.com.gamemods.kotlinfun.bukkit.Colorized
import br.com.gamemods.kotlinfun.bungee.ComponentArray
import net.md_5.bungee.api.ChatColor
import net.md_5.bungee.api.chat.*
Expand Down
36 changes: 8 additions & 28 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
allprojects {
group 'br.com.gamemods.kotlinfun'
version '0.2-SNAPSHOT'

repositories {
mavenCentral()
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://hub.spigotmc.org/nexus/content/groups/public/' }
}
}

buildscript {
ext.kotlin_version = '1.0.3'
ext.bukkit_repo = 'https://hub.spigotmc.org/nexus/content/groups/public/'

repositories {
mavenCentral()
Expand All @@ -20,10 +25,6 @@ buildscript {

apply plugin: 'kotlin'

repositories {
mavenCentral()
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
Expand All @@ -42,11 +43,6 @@ subprojects {
options.encoding = 'UTF-8'
}

repositories {
mavenCentral()
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
Expand All @@ -55,16 +51,6 @@ subprojects {
testCompile group: 'junit', name: 'junit', version: '4.11'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

/*
jar {
baseName = "KotlinFun-${project.name}"
}
*/

shadowJar {
dependencies {
include dependency("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
Expand All @@ -74,8 +60,6 @@ subprojects {
}

classifier = null
// baseName = "KotlinFun-${project.name}"
// relocate 'kotlin', 'br.com.gamemods.kotlinfun.kotlin'
}

build.finalizedBy shadowJar
Expand All @@ -88,19 +72,15 @@ project(':BungeeChat') {
}

project(':UniversalPlugin') {
repositories {
maven { url = bukkit_repo }
}

dependencies {
compile project(':BungeePlugin')
compile project(':BukkitPlugin')
compile project(':SpigotPlugin')
}

shadowJar {
dependencies {
include project(':BungeePlugin')
include project(':BukkitPlugin')
include project(':SpigotPlugin')
}
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rootProject.name = 'KotlinFun'
include 'BukkitPlugin', 'BungeePlugin', 'BungeeChat', 'UniversalPlugin'
include 'BukkitPlugin', 'BungeePlugin', 'SpigotPlugin', 'BungeeChat', 'UniversalPlugin'

0 comments on commit f68a58c

Please sign in to comment.