You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
plugins {
|
|
id 'java'
|
|
id 'java-library'
|
|
id 'scala'
|
|
id 'application' //for 'run' task
|
|
id 'com.adarshr.test-logger' version '3.2.0' //fancy prints during tests
|
|
id 'com.github.johnrengelman.shadow' version '7.1.2' //for building optimised jar
|
|
}
|
|
|
|
final var scalaVersion = "2.13"
|
|
mainClassName = 'org.tbasket.Main'
|
|
group 'org.tbasket'
|
|
|
|
println("Running gradle on java version ${System.getProperty("java.version")}.")
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
shadowJar {
|
|
archivesBaseName = "server"
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':API')
|
|
implementation project(':DB')
|
|
testImplementation "io.circe:circe-core_$scalaVersion:0.15.0-M1"
|
|
testImplementation "io.circe:circe-parser_$scalaVersion:0.15.0-M1"
|
|
|
|
}
|
|
|
|
testlogger {
|
|
theme 'mocha'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testlogger {
|
|
theme 'standard-parallel'
|
|
}
|
|
}
|
|
|
|
run {
|
|
standardInput = System.in
|
|
}
|
|
|
|
allprojects {
|
|
apply plugin: 'scala'
|
|
apply plugin: 'java-library'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
|
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
|
|
implementation 'org.slf4j:slf4j-simple:2.0.4'
|
|
implementation "org.scala-lang:scala-library:$scalaVersion.10"
|
|
|
|
}
|
|
|
|
}
|