mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 20:31:38 +01:00
46c60828e1
Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 3.141.59 to 4.0.0. - [Release notes](https://github.com/SeleniumHQ/selenium/releases) - [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-3.141.59...selenium-4.0.0) --- updated-dependencies: - dependency-name: org.seleniumhq.selenium:selenium-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
168 lines
5.5 KiB
Groovy
168 lines
5.5 KiB
Groovy
// Aggregate Javadocs
|
|
buildscript {
|
|
repositories { mavenCentral() }
|
|
dependencies {
|
|
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:3.0.+'
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "com.github.johnrengelman.shadow" version "7.1.0" apply false
|
|
id "io.github.slimjar" version "1.3.0" apply false
|
|
id "java"
|
|
id "jacoco"
|
|
id "checkstyle"
|
|
id "org.sonarqube" version "3.3"
|
|
}
|
|
|
|
apply plugin: 'nebula-aggregate-javadocs'
|
|
|
|
def determineBuildVersion = {
|
|
def buildInfo = new ByteArrayOutputStream()
|
|
exec {
|
|
commandLine 'git', 'rev-list', '--count', 'HEAD'
|
|
standardOutput = buildInfo
|
|
}
|
|
// Magic number: git rev-list --count cdb13e3b663b18e3938ad5efc60d165fa9301f6e
|
|
return Integer.parseInt(buildInfo.toString().replaceAll("[^0-9]", "")) - 3529
|
|
}
|
|
def buildVersion = determineBuildVersion()
|
|
|
|
allprojects {
|
|
|
|
group "com.djrapitops"
|
|
version "5.4-SNAPSHOT"
|
|
|
|
ext.majorVersion = '5'
|
|
ext.minorVersion = '4'
|
|
ext.buildVersion = buildVersion
|
|
ext.fullVersion = project.ext.majorVersion + '.' + project.ext.minorVersion + ' build ' + project.ext.buildVersion
|
|
|
|
// Fix for UTF-8 files showing with wrong encoding when compiled on Windows machines.
|
|
compileJava { options.encoding = "UTF-8" }
|
|
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
|
|
javadoc { options.encoding = 'UTF-8' }
|
|
}
|
|
|
|
logger.lifecycle("Building artifact for version $fullVersion")
|
|
|
|
subprojects {
|
|
// Build plugins
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
|
apply plugin: "io.github.slimjar"
|
|
apply plugin: "java"
|
|
apply plugin: "maven-publish"
|
|
|
|
// Report plugins
|
|
apply plugin: "checkstyle"
|
|
apply plugin: "jacoco"
|
|
|
|
compileJava {
|
|
options.release = 8
|
|
}
|
|
|
|
ext {
|
|
daggerVersion = "2.39.1"
|
|
daggerCompilerVersion = "2.39.1"
|
|
|
|
palVersion = "5.0.0"
|
|
|
|
bukkitVersion = "1.13.2-R0.1-SNAPSHOT"
|
|
spigotVersion = "1.13.2-R0.1-SNAPSHOT"
|
|
paperVersion = "1.13.2-R0.1-SNAPSHOT"
|
|
spongeVersion = "7.3.0"
|
|
nukkitVersion = "1.0-SNAPSHOT"
|
|
bungeeVersion = "1.16-R0.4"
|
|
velocityVersion = "3.0.0-SNAPSHOT"
|
|
redisBungeeVersion = "0.3.8-SNAPSHOT"
|
|
|
|
commonsTextVersion = "1.9"
|
|
commonsCompressVersion = "1.21"
|
|
caffeineVersion = "2.9.2"
|
|
mysqlVersion = "8.0.26"
|
|
sqliteVersion = "3.36.0.3"
|
|
hikariVersion = "4.0.3"
|
|
slf4jVersion = "1.7.32"
|
|
geoIpVersion = "2.15.0"
|
|
gsonVersion = "2.8.8"
|
|
bstatsVersion = "2.2.1"
|
|
placeholderapiVersion = "2.10.10"
|
|
nkPlaceholderapiVersion = "1.4-SNAPSHOT"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" } // Spigot
|
|
maven { url = "https://papermc.io/repo/repository/maven-public/" } // Paper
|
|
maven { url = "https://repo.spongepowered.org/repository/maven-public/" } // Sponge
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" } // BungeeCord
|
|
maven { url = "https://repo.md-5.net/content/repositories/snapshots/" } // RedisBungee
|
|
maven { url = "https://repo.velocitypowered.com/snapshots/" } // Velocity
|
|
maven { url = "https://repo.playeranalytics.net/releases" } // Plan
|
|
}
|
|
|
|
dependencies {
|
|
// Dependency Injection used across the project
|
|
implementation "io.github.slimjar:slimjar:1.2.6" // Runtime dependency injection
|
|
implementation "com.google.dagger:dagger:$daggerVersion"
|
|
annotationProcessor "com.google.dagger:dagger-compiler:$daggerCompilerVersion"
|
|
testAnnotationProcessor "com.google.dagger:dagger-compiler:$daggerCompilerVersion"
|
|
|
|
// Test Tooling Dependencies
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1' // JUnit 5
|
|
testImplementation "org.mockito:mockito-core:3.12.4" // Mockito Core
|
|
testImplementation "org.mockito:mockito-junit-jupiter:3.12.4" // Mockito JUnit 5 Extension
|
|
testImplementation "org.seleniumhq.selenium:selenium-java:4.0.0" // Selenium (Browser tests)
|
|
testImplementation "com.jayway.awaitility:awaitility:1.7.0" // Awaitility (Concurrent wait conditions)
|
|
|
|
// Testing dependencies required by Plan
|
|
testImplementation "org.xerial:sqlite-jdbc:$sqliteVersion" // SQLite
|
|
testImplementation "mysql:mysql-connector-java:$mysqlVersion" // MySQL
|
|
}
|
|
|
|
configurations {
|
|
testArtifacts.extendsFrom testRuntimeOnly
|
|
}
|
|
// Test classes available to other modules
|
|
task testJar(type: Jar) {
|
|
archiveClassifier.set("test")
|
|
from sourceSets.test.output
|
|
}
|
|
artifacts {
|
|
testArtifacts testJar
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "failed", "skipped"
|
|
exceptionFormat "full"
|
|
}
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion "8.44"
|
|
getConfigDirectory().set file("$rootProject.projectDir/config/checkstyle")
|
|
}
|
|
|
|
jacocoTestReport {
|
|
reports {
|
|
xml.required = true
|
|
// xml.destination file("${buildDir}/jacoco/report.xml")
|
|
}
|
|
}
|
|
|
|
plugins.withType(JacocoPlugin) {
|
|
tasks["test"].finalizedBy 'jacocoTestReport'
|
|
}
|
|
}
|
|
|
|
sonarqube {
|
|
properties {
|
|
property "sonar.projectName", "Player Analytics"
|
|
property "sonar.projectKey", "com.djrapitops:Plan"
|
|
property "sonar.coverage.jacoco.xmlReportPaths", "**/build/report/jacoco/test/jacocoTestReport.xml"
|
|
}
|
|
}
|