2023-01-27 15:34:46 +13:00
|
|
|
task copyRuntimeLibs(type: Copy) {
|
|
|
|
into project.jar.destinationDirectory
|
|
|
|
from configurations.runtimeClasspath
|
2023-02-11 02:46:54 +13:00
|
|
|
exclude "${project.name}.jar"
|
2023-01-27 15:34:46 +13:00
|
|
|
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
|
|
|
}
|
|
|
|
copyRuntimeLibs.dependsOn(addDependenciesModuleInfo)
|
|
|
|
jar.dependsOn(copyRuntimeLibs)
|
|
|
|
|
2023-02-11 10:52:20 +13:00
|
|
|
def dev = tasks.register('createDevOutput', Copy) {
|
2023-04-11 03:22:07 +12:00
|
|
|
mustRunAfter copyRuntimeLibs, jar
|
|
|
|
|
2023-04-05 04:11:31 +12:00
|
|
|
if (project.allExtensions.contains(project)) {
|
|
|
|
var source = "${project.jar.destinationDirectory.get()}"
|
|
|
|
from source
|
|
|
|
into "${project.rootDir}/app/build/ext_dev/$project.name"
|
|
|
|
}
|
2023-02-11 10:52:20 +13:00
|
|
|
}
|
|
|
|
jar.finalizedBy(dev)
|
|
|
|
|
2023-02-11 04:09:48 +13:00
|
|
|
tasks.register('createExtOutput', Copy) {
|
2023-04-11 03:22:07 +12:00
|
|
|
mustRunAfter copyRuntimeLibs, jar
|
|
|
|
|
2023-02-20 06:44:47 +13:00
|
|
|
if (!file("${project.jar.destinationDirectory.get()}_prod").exists()) {
|
|
|
|
copy {
|
|
|
|
from "${project.jar.destinationDirectory.get()}"
|
|
|
|
into "${project.jar.destinationDirectory.get()}_prod"
|
2023-02-11 02:46:54 +13:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def shouldObfuscate = rootProject.obfuscate && rootProject.privateExtensions.contains(project.name)
|
|
|
|
var source = shouldObfuscate ? "${project.jar.destinationDirectory.get()}_prod" : "${project.jar.destinationDirectory.get()}"
|
|
|
|
|
2023-02-20 06:44:47 +13:00
|
|
|
from source
|
|
|
|
into "${project.jar.destinationDirectory.get()}_ext"
|
2023-02-11 02:46:54 +13:00
|
|
|
}
|
|
|
|
|
2023-01-27 15:34:46 +13:00
|
|
|
apply from: "$rootDir/gradle/gradle_scripts/java.gradle"
|
|
|
|
apply from: "$rootDir/gradle/gradle_scripts/javafx.gradle"
|
|
|
|
apply from: "$rootDir/gradle/gradle_scripts/lombok.gradle"
|
|
|
|
apply from: "$rootDir/gradle/gradle_scripts/extension_test.gradle"
|
|
|
|
|
|
|
|
dependencies {
|
2023-06-01 13:23:45 +12:00
|
|
|
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "2.15.2"
|
2023-02-20 06:44:47 +13:00
|
|
|
compileOnly project(':core')
|
|
|
|
compileOnly project(':beacon')
|
|
|
|
compileOnly project(':app')
|
2023-08-15 23:05:49 +12:00
|
|
|
compileOnly 'net.synedra:validatorfx:0.4.2'
|
2023-06-20 04:05:26 +12:00
|
|
|
compileOnly ('io.github.mkpaz:atlantafx-base:2.0.1') {
|
|
|
|
exclude group: 'org.openjfx', module: 'javafx-base'
|
|
|
|
exclude group: 'org.openjfx', module: 'javafx-controls'
|
|
|
|
}
|
2023-01-27 15:34:46 +13:00
|
|
|
|
|
|
|
if (project != project(':base')) {
|
|
|
|
compileOnly project(':base')
|
2023-02-20 22:49:10 +13:00
|
|
|
testImplementation project(':base')
|
2023-01-27 15:34:46 +13:00
|
|
|
}
|
|
|
|
|
2023-02-20 06:44:47 +13:00
|
|
|
testImplementation project(':app')
|
2023-01-27 15:34:46 +13:00
|
|
|
}
|
|
|
|
|