Fixed build dependency issues by moving hal core into hal-core folder/subproject

This commit is contained in:
Ziver Koc 2020-11-10 18:36:02 +01:00
parent f1da2c5a4d
commit ded778fd11
138 changed files with 195 additions and 183 deletions

View file

@ -3,14 +3,20 @@ plugins {
id 'application'
}
allprojects {
apply plugin: 'java'
// ------------------------------------
// Hal common configuration
// ------------------------------------
allprojects {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
subprojects {
apply plugin: 'java-library'
dependencies {
implementation 'se.koc:zutil:1.0.0-SNAPSHOT'
@ -41,7 +47,9 @@ allprojects {
// ------------------------------------
dependencies {
implementation 'org.xerial:sqlite-jdbc:3.32.3.2'
project.subprojects.each { subProject ->
runtime subProject
}
}
distributions {
@ -50,26 +58,10 @@ distributions {
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(':')
}
}