Skip to content

Commit

Permalink
common: 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 8258fe1 commit eb3a663
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 55 deletions.
55 changes: 0 additions & 55 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,61 +98,6 @@ configure([project(':cli'),
}
}


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

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

ext.getHash = {
def p1 = 'git rev-parse HEAD'.execute()
p1.waitFor()
return p1.text
}

jar.manifest.attributes(
"Implementation-Version": getHash())

dependencies {
implementation enforcedPlatform(project(':platform'))
implementation project(':proto')
annotationProcessor libs.lombok
compileOnly libs.javax.annotation
compileOnly libs.lombok
implementation libs.logback.classic
implementation libs.logback.core
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.google.findbugs
implementation libs.google.gson
implementation libs.google.guava
implementation(libs.google.guice) {
exclude(module: 'guava')
}
implementation libs.commons.io
implementation libs.jopt
implementation libs.apache.commons.lang3
implementation libs.bouncycastle.bcpg.jdk15on
implementation libs.kotlin.stdlib.jdk8
implementation libs.jetbrains.annotations
implementation libs.slf4j.api
runtimeOnly(libs.grpc.netty.shaded) {
exclude(module: 'animal-sniffer-annotations')
exclude(module: 'guava')
}
}
}


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

Expand Down
51 changes: 51 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
plugins {
id 'bisq.java-conventions'
}

apply plugin: 'org.openjfx.javafxplugin'

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

ext.getHash = {
def p1 = 'git rev-parse HEAD'.execute()
p1.waitFor()
return p1.text
}

jar.manifest.attributes(
"Implementation-Version": getHash())

dependencies {
implementation enforcedPlatform(project(':platform'))
implementation project(':proto')
annotationProcessor libs.lombok
compileOnly libs.javax.annotation
compileOnly libs.lombok
implementation libs.logback.classic
implementation libs.logback.core
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.google.findbugs
implementation libs.google.gson
implementation libs.google.guava
implementation(libs.google.guice) {
exclude(module: 'guava')
}
implementation libs.commons.io
implementation libs.jopt
implementation libs.apache.commons.lang3
implementation libs.bouncycastle.bcpg.jdk15on
implementation libs.kotlin.stdlib.jdk8
implementation libs.jetbrains.annotations
implementation libs.slf4j.api
runtimeOnly(libs.grpc.netty.shaded) {
exclude(module: 'animal-sniffer-annotations')
exclude(module: 'guava')
}
}

0 comments on commit eb3a663

Please sign in to comment.