Skip to content

Commit

Permalink
Improved the modules and the output jars names
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Oct 20, 2016
1 parent 793d9bc commit 42a1220
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 11 deletions.
4 changes: 2 additions & 2 deletions KotlinFunBukkit/build.gradle → BukkitPlugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ repositories {

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


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

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions KotlinFunBungee/build.gradle → BungeePlugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
dependencies {
compile 'net.md-5:bungeecord-api:1.10-SNAPSHOT'
compile project(':KotlinFunBungeeChat')
compile project(':BungeeChat')
}

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

Expand Down
File renamed without changes.
17 changes: 11 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ subprojects {
main.java.srcDirs += 'src/main/kotlin'
}

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

shadowJar {
dependencies {
include dependency("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
Expand All @@ -68,32 +72,33 @@ subprojects {
}

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

build.finalizedBy shadowJar
}

project(':KotlinFunBungeeChat') {
project(':BungeeChat') {
dependencies {
compile 'net.md-5:bungeecord-chat:1.10-SNAPSHOT'
}
}

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

dependencies {
compile project(':KotlinFunBungee')
compile project(':KotlinFunBukkit')
compile project(':BungeePlugin')
compile project(':BukkitPlugin')
}

shadowJar {
dependencies {
include project(':KotlinFunBungee')
include project(':KotlinFunBukkit')
include project(':BungeePlugin')
include project(':BukkitPlugin')
}
}
}
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 'KotlinFunBukkit', 'KotlinFunBungee', 'KotlinFunBungeeChat', 'KotlinFunUniversal'
include 'BukkitPlugin', 'BungeePlugin', 'BungeeChat', 'UniversalPlugin'

0 comments on commit 42a1220

Please sign in to comment.