i am trying to move my MAVEN
build to a gradle
therefore i need to solve the following:
project:
- application (this one shall create a fatjar)
plugins (shall result in single jar files, but no fat jars!)
- utils (requires: jarX, jarY, jarZ)
- data (requires: utils, jarX, jarY)
- controls (requires: data, utils, jarY)
what i worked out is create a jar for each plugin (but i have to FULLY define its dependecies, which is actually gradle
s job
so what i did was create jar files, copy them manually to a reposiory
and declare dependencies on those...
so what i expected is, that i only have to tell application to require controls, because controls already includes anything needed (alsways includes the dependencies from stuff below)
i guess i have to define a project (yes i read the help page of gradle, but i was not able to work it out)
so right now i have settings.gradle in each plugin, but what i read this is wrong. i should only have one settings.gradle in the root.
ROOT: settings.gradle:
include ':application', ':controls', ':data', ':util'
ROOT: build.gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.glazedlists:glazedlists:1.11.0'
classpath 'org.jooq:jooq:3.12.1'
classpath 'org.controlsfx:controlsfx:8.40.12'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
and each of the plugins got: build.gradle
plugins {
id 'java-library'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
but this does not work either...
thanks in advance