mirror of
https://bitbucket.org/projectswg/lightspeed.git
synced 2026-01-16 23:04:40 -05:00
57 lines
1.0 KiB
Groovy
57 lines
1.0 KiB
Groovy
apply plugin: 'application'
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
apply plugin: 'java'
|
|
|
|
mainClassName = 'com.projectswg.Lightspeed'
|
|
|
|
manifest {
|
|
attributes 'Main-Class': 'com.projectswg.Lightspeed'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs = ['src']
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDirs = ['test']
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
testLogging {
|
|
events "skipped", "failed"
|
|
}
|
|
afterSuite { TestDescriptor td, TestResult tr ->
|
|
println 'Tests run: ('+tr.getTestCount()+'), Failures: ('+tr.getFailedTestCount()+'), Errors: (0)'
|
|
}
|
|
include 'com/projectswg/lightspeed/TestLightspeed.class'
|
|
}
|
|
|
|
shadowJar{
|
|
archiveName = "Lightspeed.${extension}"
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'lib', include: ['*.jar'])
|
|
}
|
|
|
|
repositories {
|
|
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.gradle:gradle-tooling-api:3.3"
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
maven { url 'https://plugins.gradle.org/m2/' }
|
|
}
|
|
dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0' }
|
|
}
|