67 lines
No EOL
1.2 KiB
Groovy
67 lines
No EOL
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
}
|
|
|
|
// ------------------------------------
|
|
// Hal common configuration
|
|
// ------------------------------------
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'java-library'
|
|
|
|
dependencies {
|
|
implementation 'se.koc:zutil:1.0.0-SNAPSHOT'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation 'org.hamcrest:hamcrest-core:2.2'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs 'src'
|
|
}
|
|
resources {
|
|
srcDir 'resource'
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDirs 'test'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ------------------------------------
|
|
// Hal core configuration
|
|
// ------------------------------------
|
|
|
|
dependencies {
|
|
project.subprojects.each { subProject ->
|
|
runtime subProject
|
|
}
|
|
}
|
|
|
|
distributions {
|
|
main {
|
|
contents {
|
|
from 'hal.conf.example'
|
|
from 'hal-default.db'
|
|
from 'logging.properties'
|
|
}
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass = 'se.hal.HalServer'
|
|
} |