apply plugin: 'java-library'

jar {
  archiveBaseName = 'besu-blockcreation'
  manifest {
    attributes(
      'Specification-Title': archiveBaseName,
      'Specification-Version': project.version,
      'Implementation-Title': archiveBaseName,
      'Implementation-Version': calculateVersion(),
      'Commit-Hash': getGitCommitDetails(40).hash
      )
  }
}

dependencies {
  implementation project(':config')
  implementation project(':crypto:algorithms')
  implementation project(':datatypes')
  implementation project(':ethereum:core')
  implementation project(':ethereum:eth')
  implementation project(':evm')
  implementation project(':services:kvstore')
  implementation project(':util')

  implementation 'com.google.guava:guava'
  implementation 'io.vertx:vertx-core'
  implementation 'io.consensys.protocols:tuweni-bytes'
  implementation 'io.consensys.protocols:tuweni-units'

  testImplementation project(':besu')
  testImplementation project(path: ':config', configuration: 'testSupportArtifacts')
  testImplementation project(path: ':ethereum:core', configuration: 'testArtifacts')
  testImplementation project(path: ':ethereum:core', configuration: 'testSupportArtifacts')
  testImplementation project(':ethereum:referencetests')
  testImplementation project(':metrics:core')
  testImplementation project(':testutil')

  testImplementation 'com.fasterxml.jackson.core:jackson-databind'
  testImplementation 'org.assertj:assertj-core'
  testImplementation 'org.awaitility:awaitility'
  testImplementation 'org.junit.jupiter:junit-jupiter'
  testImplementation 'org.mockito:mockito-junit-jupiter'
  testImplementation 'org.mockito:mockito-core'
}
