hal/build.gradle
2020-11-10 16:40:31 +01:00

75 lines
No EOL
1.3 KiB
Groovy

plugins {
id 'java'
id 'application'
}
allprojects {
apply plugin: 'java'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
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 {
implementation 'org.xerial:sqlite-jdbc:3.32.3.2'
}
distributions {
main {
contents {
from 'hal.conf.example'
from 'hal-default.db'
from 'logging.properties'
project.subprojects.each { sub ->
into('lib') {
from sub.jar
}
}
}
}
}
application {
mainClass = 'se.hal.HalServer'
}
// ------------------------------------
// Hal plugin common configuration
// ------------------------------------
subprojects {
dependencies {
implementation project(':')
}
}