Skip to content

Commit

Permalink
core: Move build configuration to its own build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Aug 4, 2023
1 parent 6fdf2a2 commit b35dcef
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 69 deletions.
69 changes: 0 additions & 69 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,75 +98,6 @@ configure([project(':cli'),
}
}

configure(project(':core')) {
apply plugin: 'org.openjfx.javafxplugin'

javafx {
version = "$javafxVersion"
modules = ['javafx.base']
}

dependencies {
implementation enforcedPlatform(project(':platform'))
implementation project(':proto')
implementation project(':assets')
implementation project(':common')
implementation project(':p2p')
annotationProcessor libs.lombok
compileOnly libs.javax.annotation
compileOnly libs.lombok
implementation libs.logback.classic
implementation libs.logback.core
implementation libs.jackson.annotations
implementation libs.jackson.core
implementation libs.google.findbugs
implementation libs.google.gson
implementation libs.google.guava
implementation libs.commons.codec
implementation libs.commons.io
implementation libs.jopt
implementation libs.apache.commons.lang3
implementation libs.apache.httpcore
implementation libs.fxmisc.easybind
implementation libs.jetbrains.annotations
implementation libs.slf4j.api
implementation(libs.jackson.databind) {
exclude(module: 'jackson-annotations')
}
implementation(libs.netlayer.tor.external) {
exclude(module: 'slf4j-api')
}
implementation(libs.netlayer.tor.native) {
exclude(module: 'slf4j-api')
}
implementation(libs.bitcoinj) {
exclude(module: 'bcprov-jdk15on')
exclude(module: 'guava')
exclude(module: 'jsr305')
exclude(module: 'okhttp')
exclude(module: 'okio')
exclude(module: 'slf4j-api')
}
implementation(libs.jsonrpc4j) {
exclude(module: 'base64')
exclude(module: 'httpcore-nio')
}
implementation(libs.google.guice) {
exclude(module: 'guava')
}
implementation(libs.apache.httpclient) {
exclude(module: 'commons-codec')
}
testAnnotationProcessor libs.lombok
testCompileOnly libs.lombok
testImplementation libs.natpryce.make.it.easy
}

test {
systemProperty 'jdk.attach.allowAttachSelf', true
}
}

configure(project(':desktop')) {
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'org.openjfx.javafxplugin'
Expand Down
67 changes: 67 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,70 @@
plugins {
id 'bisq.java-conventions'
}

apply plugin: 'org.openjfx.javafxplugin'

javafx {
version = "16"
modules = ['javafx.base']
}

dependencies {
implementation enforcedPlatform(project(':platform'))
implementation project(':proto')
implementation project(':assets')
implementation project(':common')
implementation project(':p2p')
annotationProcessor libs.lombok
compileOnly libs.javax.annotation
compileOnly libs.lombok
implementation libs.logback.classic
implementation libs.logback.core
implementation libs.jackson.annotations
implementation libs.jackson.core
implementation libs.google.findbugs
implementation libs.google.gson
implementation libs.google.guava
implementation libs.commons.codec
implementation libs.commons.io
implementation libs.jopt
implementation libs.apache.commons.lang3
implementation libs.apache.httpcore
implementation libs.fxmisc.easybind
implementation libs.jetbrains.annotations
implementation libs.slf4j.api
implementation(libs.jackson.databind) {
exclude(module: 'jackson-annotations')
}
implementation(libs.netlayer.tor.external) {
exclude(module: 'slf4j-api')
}
implementation(libs.netlayer.tor.native) {
exclude(module: 'slf4j-api')
}
implementation(libs.bitcoinj) {
exclude(module: 'bcprov-jdk15on')
exclude(module: 'guava')
exclude(module: 'jsr305')
exclude(module: 'okhttp')
exclude(module: 'okio')
exclude(module: 'slf4j-api')
}
implementation(libs.jsonrpc4j) {
exclude(module: 'base64')
exclude(module: 'httpcore-nio')
}
implementation(libs.google.guice) {
exclude(module: 'guava')
}
implementation(libs.apache.httpclient) {
exclude(module: 'commons-codec')
}
testAnnotationProcessor libs.lombok
testCompileOnly libs.lombok
testImplementation libs.natpryce.make.it.easy
}

test {
systemProperty 'jdk.attach.allowAttachSelf', true
}

0 comments on commit b35dcef

Please sign in to comment.