2021-12-01 18:17:54 +00:00
|
|
|
plugins {
|
2022-01-10 06:10:44 +00:00
|
|
|
id 'java-library'
|
|
|
|
id 'maven-publish'
|
|
|
|
id 'signing'
|
2021-12-01 18:17:54 +00:00
|
|
|
id "org.moditect.gradleplugin" version "1.0.0-rc3"
|
|
|
|
}
|
|
|
|
|
2022-01-10 06:10:44 +00:00
|
|
|
apply from: "$rootDir/deps/java.gradle"
|
|
|
|
apply from: "$rootDir/deps/junit.gradle"
|
|
|
|
apply from: 'publish.gradle'
|
|
|
|
apply from: "$rootDir/deps/publish-base.gradle"
|
|
|
|
|
|
|
|
version = file('../version').text
|
|
|
|
group = 'io.xpipe'
|
|
|
|
archivesBaseName = 'api'
|
2021-12-01 18:17:54 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2021-12-15 00:50:00 +00:00
|
|
|
}
|
2021-12-01 18:17:54 +00:00
|
|
|
|
|
|
|
dependencies {
|
2022-03-09 21:51:04 +00:00
|
|
|
// Fix warnings about missing annotations
|
|
|
|
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "2.13.0"
|
|
|
|
testCompileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "2.13.0"
|
|
|
|
|
2021-12-01 18:17:54 +00:00
|
|
|
implementation project(':core')
|
|
|
|
implementation project(':beacon')
|
|
|
|
}
|
|
|
|
|
2022-03-09 21:51:04 +00:00
|
|
|
def canTestWithDev = findProject(':app') != null
|
2022-03-10 17:48:06 +00:00
|
|
|
def home = System.getenv('XPIPE_HOME')
|
|
|
|
String daemonCommand = canTestWithDev ?
|
|
|
|
"cmd.exe /c \\\"$rootDir\\gradlew.bat\\\" :app:run" :
|
|
|
|
"cmd.exe /c \\\"$home\\app\\xpipe.exe\\\""
|
2022-03-09 21:51:04 +00:00
|
|
|
|
2021-12-01 18:17:54 +00:00
|
|
|
test {
|
2022-03-05 19:46:33 +00:00
|
|
|
workingDir = rootDir
|
2021-12-01 18:17:54 +00:00
|
|
|
|
2022-03-07 21:59:48 +00:00
|
|
|
// Daemon properties
|
2022-03-09 21:51:04 +00:00
|
|
|
systemProperty "io.xpipe.beacon.exec", daemonCommand +
|
2022-03-07 21:59:48 +00:00
|
|
|
" -Dio.xpipe.app.mode=tray" +
|
|
|
|
" -Dio.xpipe.beacon.port=21722" +
|
|
|
|
" -Dio.xpipe.app.dataDir=$projectDir/local/" +
|
|
|
|
" -Dio.xpipe.storage.persist=false" +
|
|
|
|
" -Dio.xpipe.app.writeSysOut=true" +
|
2022-03-10 17:48:06 +00:00
|
|
|
" -Dio.xpipe.app.writeLogs=true" +
|
2022-03-08 22:30:13 +00:00
|
|
|
// " -Dio.xpipe.beacon.debugOutput=true" +
|
2022-03-07 21:59:48 +00:00
|
|
|
" -Dio.xpipe.app.logLevel=trace"
|
2022-03-05 19:46:33 +00:00
|
|
|
|
2022-03-07 21:59:48 +00:00
|
|
|
// API properties
|
|
|
|
// systemProperty 'io.xpipe.beacon.debugOutput', "true"
|
2022-03-10 17:48:06 +00:00
|
|
|
systemProperty 'io.xpipe.beacon.debugExecOutput', "true"
|
2022-03-05 19:46:33 +00:00
|
|
|
systemProperty "io.xpipe.beacon.port", "21722"
|
2021-12-01 18:17:54 +00:00
|
|
|
}
|