mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-22 17:18:40 +01:00
Add WIP gradle build scripts (#833) by Miclebrick
> Not actually fully functional, but it's a start
This commit is contained in:
parent
8d199bcdc3
commit
65221b1ba9
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,6 +5,8 @@ PlanPluginBridge.iml
|
||||
|
||||
*.db
|
||||
|
||||
**/.gradle
|
||||
|
||||
# Created by https://www.gitignore.io/api/maven,eclipse,intellij,netbeans,osx,windows,notepadpp,windows,java
|
||||
|
||||
### Maven ###
|
||||
|
84
Plan/build.gradle
Normal file
84
Plan/build.gradle
Normal file
@ -0,0 +1,84 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "com.github.johnrengelman.shadow" version "2.0.4"
|
||||
}
|
||||
|
||||
allprojects {
|
||||
wrapper.gradleVersion = "5.0"
|
||||
|
||||
group "com.djrapitops"
|
||||
version "4.5.0-SNAPSHOT"
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply plugin: "java"
|
||||
apply plugin: "maven"
|
||||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
ext.daggerVersion = "2.9"
|
||||
|
||||
ext.abstractPluginFrameworkVersion = "3.4.0"
|
||||
ext.planPluginBridgeVersion = "4.5.1"
|
||||
ext.bukkitVersion = "1.12.2-R0.1-SNAPSHOT"
|
||||
ext.spigotVersion = "1.12.2-R0.1-SNAPSHOT"
|
||||
ext.paperVersion = "1.12.2-R0.1-SNAPSHOT"
|
||||
ext.spongeVersion = "7.1.0"
|
||||
ext.bungeeVersion = "1.12-SNAPSHOT"
|
||||
ext.velocityVersion = "1.0-SNAPSHOT"
|
||||
ext.redisBungeeVersion = "0.3.8-SNAPSHOT"
|
||||
ext.httpClientVersion = "4.5.6"
|
||||
ext.commonsTextVersion = "1.6"
|
||||
ext.htmlCompressorVersion = "1.5.2"
|
||||
ext.caffeineVersion = "2.6.2"
|
||||
ext.h2Version = "1.4.196"
|
||||
ext.hikariVersion = "3.2.0"
|
||||
ext.slf4jVersion = "1.7.25"
|
||||
ext.geoIpVersion = "2.12.0"
|
||||
ext.guavaVersion = "26.0-jre"
|
||||
ext.bstatsVersion = "1.2"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
|
||||
}
|
||||
maven {
|
||||
url = "https://papermc.io/repo/repository/maven-public/"
|
||||
}
|
||||
maven {
|
||||
url = "https://repo.spongepowered.org/maven"
|
||||
}
|
||||
maven {
|
||||
url = "https://oss.sonatype.org/content/repositories/snapshots"
|
||||
}
|
||||
maven {
|
||||
url = "http://repo.md-5.net/content/repositories/snapshots/"
|
||||
}
|
||||
maven {
|
||||
url = "https://repo.velocitypowered.com/snapshots/"
|
||||
}
|
||||
maven {
|
||||
url = "http://repo.bstats.org/content/repositories/releases/"
|
||||
}
|
||||
maven {
|
||||
url = "https://dl.bintray.com/rsl1122/Plan-repository"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "com.google.dagger:dagger:$daggerVersion"
|
||||
|
||||
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
|
||||
|
||||
// Dependencies for tests
|
||||
testCompile "org.mockito:mockito-core:2.23.4"
|
||||
testCompile "org.xerial:sqlite-jdbc:3.25.2"
|
||||
testCompile "junit:junit:4.12"
|
||||
testCompile "org.hamcrest:hamcrest-core:1.3"
|
||||
testCompile "org.seleniumhq.selenium:selenium-java:3.14.0"
|
||||
testCompile "com.jayway.awaitility:awaitility:1.7.0"
|
||||
}
|
||||
}
|
20
Plan/bukkit/build.gradle
Normal file
20
Plan/bukkit/build.gradle
Normal file
@ -0,0 +1,20 @@
|
||||
dependencies {
|
||||
compile project(":common")
|
||||
compile "com.djrapitops:AbstractPluginFramework-bukkit:$abstractPluginFrameworkVersion"
|
||||
compile "org.bstats:bstats-bukkit:$bstatsVersion"
|
||||
|
||||
compileOnly "org.bukkit:bukkit:$bukkitVersion"
|
||||
compileOnly "org.spigotmc:spigot-api:$spigotVersion"
|
||||
compileOnly "com.destroystokyo.paper:paper-api:$paperVersion"
|
||||
|
||||
testCompile "org.bukkit:bukkit:$bukkitVersion"
|
||||
testCompile "org.spigotmc:spigot-api:$spigotVersion"
|
||||
testCompile "com.destroystokyo.paper:paper-api:$paperVersion"
|
||||
|
||||
testCompile project(":common")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'org.bstats', 'com.djrapitops.plan.utilities.metrics'
|
||||
relocate 'org.slf4j', 'plan.org.slf4j'
|
||||
}
|
15
Plan/bungeecord/build.gradle
Normal file
15
Plan/bungeecord/build.gradle
Normal file
@ -0,0 +1,15 @@
|
||||
dependencies {
|
||||
compile project(":common")
|
||||
|
||||
compile "com.djrapitops:AbstractPluginFramework-bungeecord:$abstractPluginFrameworkVersion"
|
||||
compile "net.md-5:bungeecord-api:$bungeeVersion"
|
||||
compile "com.imaginarycode.minecraft:RedisBungee:$redisBungeeVersion"
|
||||
compile "org.bstats:bstats-bungeecord:$bstatsVersion"
|
||||
|
||||
testCompile project(":common")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'org.bstats', 'com.djrapitops.plan.utilities.metrics'
|
||||
relocate 'org.slf4j', 'plan.org.slf4j'
|
||||
}
|
33
Plan/common/build.gradle
Normal file
33
Plan/common/build.gradle
Normal file
@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Module that includes common functionality between all platforms.
|
||||
* - Contains functionality related dependencies.
|
||||
* - Contains abstractions and interfaces
|
||||
*/
|
||||
|
||||
dependencies {
|
||||
compile "com.djrapitops:AbstractPluginFramework-api:$abstractPluginFrameworkVersion"
|
||||
compile "com.djrapitops:PlanPluginBridge:$planPluginBridgeVersion"
|
||||
compile "org.apache.httpcomponents:httpclient:$httpClientVersion"
|
||||
compile "org.apache.commons:commons-text:$commonsTextVersion"
|
||||
compile "com.googlecode.htmlcompressor:htmlcompressor:$htmlCompressorVersion"
|
||||
compile "com.github.ben-manes.caffeine:caffeine:$caffeineVersion"
|
||||
compile "com.h2database:h2:$h2Version"
|
||||
compile "com.zaxxer:HikariCP:$hikariVersion"
|
||||
runtime "org.slf4j:slf4j-nop:$slf4jVersion"
|
||||
compile "org.slf4j:slf4j-api:$slf4jVersion"
|
||||
compile "com.maxmind.geoip2:geoip2:$geoIpVersion"
|
||||
compileOnly "com.google.guava:guava:$guavaVersion"
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'org.apache', 'plan.org.apache', {
|
||||
exclude 'org/apache/logging/**'
|
||||
}
|
||||
|
||||
relocate 'com.maxmind', 'plan.com.maxmind'
|
||||
relocate 'com.fasterxml', 'plan.com.fasterxml'
|
||||
relocate 'com.zaxxer', 'plan.com.zaxxer'
|
||||
relocate 'org.h2', 'plan.org.h2'
|
||||
relocate 'org.bstats', 'plan.org.bstats'
|
||||
relocate 'org.slf4j', 'plan.org.slf4j'
|
||||
}
|
18
Plan/plugin/build.gradle
Normal file
18
Plan/plugin/build.gradle
Normal file
@ -0,0 +1,18 @@
|
||||
dependencies {
|
||||
compile project(":common")
|
||||
compile project(":bukkit")
|
||||
compile project(":sponge")
|
||||
compile project(":bungeecord")
|
||||
compile project(":velocity")
|
||||
|
||||
testCompile project(":common")
|
||||
testCompile project(":bukkit")
|
||||
testCompile project(":sponge")
|
||||
testCompile project(":bungeecord")
|
||||
testCompile project(":velocity")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
destinationDir = file("$rootDir/builds/")
|
||||
classifier = null
|
||||
}
|
8
Plan/settings.gradle
Normal file
8
Plan/settings.gradle
Normal file
@ -0,0 +1,8 @@
|
||||
rootProject.name = 'Plan'
|
||||
|
||||
include 'common'
|
||||
include 'bukkit'
|
||||
include 'sponge'
|
||||
include 'bungeecord'
|
||||
include 'velocity'
|
||||
include 'plugin'
|
16
Plan/sponge/build.gradle
Normal file
16
Plan/sponge/build.gradle
Normal file
@ -0,0 +1,16 @@
|
||||
dependencies {
|
||||
compile project(":common")
|
||||
compile "com.djrapitops:AbstractPluginFramework-sponge:$abstractPluginFrameworkVersion"
|
||||
compile "org.bstats:bstats-sponge:$bstatsVersion"
|
||||
|
||||
compileOnly "org.spongepowered:spongeapi:$spongeVersion"
|
||||
|
||||
annotationProcessor "org.spongepowered:spongeapi:$spongeVersion"
|
||||
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
|
||||
|
||||
testCompile project(":common")
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate "org.bstats", "com.djrapitops.plan.utilities.metrics"
|
||||
}
|
9
Plan/velocity/build.gradle
Normal file
9
Plan/velocity/build.gradle
Normal file
@ -0,0 +1,9 @@
|
||||
dependencies {
|
||||
compile project(":common")
|
||||
compile "com.djrapitops:AbstractPluginFramework-velocity:$abstractPluginFrameworkVersion"
|
||||
compile "com.velocitypowered:velocity-api:$velocityVersion"
|
||||
|
||||
annotationProcessor "com.velocitypowered:velocity-api:$velocityVersion"
|
||||
|
||||
testCompile project(":common")
|
||||
}
|
Loading…
Reference in New Issue
Block a user