mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-10 00:13:42 -04:00
55 lines
1.0 KiB
Groovy
55 lines
1.0 KiB
Groovy
apply plugin: 'application'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
apply plugin: 'java'
|
|
|
|
mainClassName = 'main.ProjectSWG'
|
|
|
|
manifest {
|
|
attributes 'Main-Class': 'main.ProjectSWG'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs = ['src', 'test']
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDirs = ['src', 'test']
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
testLogging {
|
|
events "skipped", "failed" // just good to know in terms of what failed
|
|
}
|
|
afterSuite { TestDescriptor td, TestResult tr ->
|
|
if (td.parent == null) {
|
|
println 'Tests run: ('+tr.getTestCount()+'), Failures: ('+tr.getFailedTestCount()+')' // IMPORTANT - this is required for Lightspeed
|
|
}
|
|
}
|
|
include 'main/TestAll.class' // to run only a single test case
|
|
}
|
|
|
|
shadowJar{
|
|
archiveName = "Holocore.jar"
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'lib', include: ['*.jar'])
|
|
testCompile fileTree(dir: 'lib', include: ['*.jar'])
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
maven {
|
|
url 'https://plugins.gradle.org/m2/'
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
|
|
}
|
|
}
|