mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-02 11:11:21 +01:00
Bumps [dagger-compiler](https://github.com/google/dagger) from 2.23 to 2.23.1. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.23...dagger-2.23.1)
142 lines
4.7 KiB
Groovy
142 lines
4.7 KiB
Groovy
plugins {
|
|
id "java"
|
|
id "jacoco"
|
|
id "checkstyle"
|
|
id "org.sonarqube" version "2.7"
|
|
id "net.ltgt.apt" version "0.21"
|
|
id "net.ltgt.apt-idea" version "0.21"
|
|
id "com.github.johnrengelman.shadow" version "5.0.0"
|
|
}
|
|
|
|
allprojects {
|
|
wrapper.gradleVersion = "5.0"
|
|
|
|
group "com.djrapitops"
|
|
version "4.8.5"
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "failed"
|
|
exceptionFormat "full"
|
|
}
|
|
}
|
|
|
|
// Fix for UTF-8 files showing with wrong encoding when compiled on Windows machines.
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
// Build plugins
|
|
apply plugin: "java"
|
|
apply plugin: "maven-publish"
|
|
apply plugin: "net.ltgt.apt" // Annotation processing plugin
|
|
apply plugin: "net.ltgt.apt-idea" // Annotation processing IntelliJ IDEA configuration plugin
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
|
|
|
// Report plugins
|
|
apply plugin: "checkstyle"
|
|
apply plugin: "jacoco"
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
ext.daggerVersion = "2.23.1"
|
|
ext.daggerCompilerVersion = "2.23.1"
|
|
|
|
ext.abstractPluginFrameworkVersion = "3.4.1"
|
|
ext.planPluginBridgeVersion = "4.8.2-R0.3"
|
|
|
|
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.8"
|
|
ext.commonsTextVersion = "1.6"
|
|
ext.htmlCompressorVersion = "1.5.2"
|
|
ext.caffeineVersion = "2.7.0"
|
|
ext.h2Version = "1.4.199"
|
|
ext.hikariVersion = "3.3.1"
|
|
ext.slf4jVersion = "1.7.26"
|
|
ext.geoIpVersion = "2.12.0"
|
|
ext.guavaVersion = "26.0-jre"
|
|
ext.bstatsVersion = "1.4"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { // Spigot Repository
|
|
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
|
|
}
|
|
maven { // Paper Repository
|
|
url = "https://papermc.io/repo/repository/maven-public/"
|
|
}
|
|
maven { // Sponge Repository
|
|
url = "https://repo.spongepowered.org/maven"
|
|
}
|
|
maven { // BungeeCord Repository
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots"
|
|
}
|
|
maven { // RedisBungee Repository
|
|
url = "http://repo.md-5.net/content/repositories/snapshots/"
|
|
}
|
|
maven { // Velocity Repository
|
|
url = "https://repo.velocitypowered.com/snapshots/"
|
|
}
|
|
maven { // bStats Repository
|
|
url = "https://repo.codemc.org/repository/maven-public"
|
|
}
|
|
maven { // PlanPluginBridge Repository
|
|
url = "https://dl.bintray.com/rsl1122/Plan-repository"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Dependency Injection used across the project
|
|
compile "com.google.dagger:dagger:$daggerVersion"
|
|
annotationProcessor "com.google.dagger:dagger-compiler:$daggerCompilerVersion"
|
|
testAnnotationProcessor "com.google.dagger:dagger-compiler:$daggerCompilerVersion"
|
|
|
|
// Test Tooling Dependencies
|
|
testCompile "org.junit.jupiter:junit-jupiter-engine:5.4.2" // JUnit 5
|
|
testCompile "org.junit.platform:junit-platform-runner:1.4.2" // JUnit 4 runner for JUnit 5 tests
|
|
testCompile "org.junit.vintage:junit-vintage-engine:5.4.2" // JUnit 4 compatibility for JUnit 5
|
|
testCompile "org.junit.jupiter:junit-jupiter-params:5.4.2" // JUnit 5, parameterized tests
|
|
testCompile "org.mockito:mockito-core:2.28.2" // Mockito Core
|
|
testCompile "org.mockito:mockito-junit-jupiter:2.28.2" // Mockito JUnit 5 Extension
|
|
testCompile "org.seleniumhq.selenium:selenium-java:3.141.59" // Selenium (Browser tests)
|
|
testCompile "com.jayway.awaitility:awaitility:1.7.0" // Awaitility (Concurrent wait conditions)
|
|
|
|
// Testing dependencies required by Plan
|
|
testCompile "org.xerial:sqlite-jdbc:3.27.2.1" // SQLite
|
|
testCompile "mysql:mysql-connector-java:8.0.16" // MySQL
|
|
}
|
|
|
|
configurations {
|
|
testArtifacts.extendsFrom testRuntime
|
|
}
|
|
// Test classes available to other modules
|
|
task testJar(type: Jar) {
|
|
classifier "test"
|
|
from sourceSets.test.output
|
|
}
|
|
artifacts {
|
|
testArtifacts testJar
|
|
}
|
|
|
|
checkstyle {
|
|
configFile rootProject.file('config/checkstyle/checkstyle.xml')
|
|
}
|
|
}
|
|
|
|
sonarqube {
|
|
properties {
|
|
property "sonar.projectName", "Player Analytics"
|
|
property "sonar.projectKey", "com.djrapitops:Plan"
|
|
}
|
|
} |