mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 04:08:01 -05:00
* initial V5 removal before main coordinator adjust * fix build issue * default to V6 and remove V5 references * force Web3JLineaRollupSmartContractClientReadOnly * fix test reference * remove V5 references
29 lines
777 B
Groovy
29 lines
777 B
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'linea.web3j-codegen'
|
|
}
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
description = 'Web3J Java client for Linea L1 Rollup Smart Contract'
|
|
ext.artifactId = 'l1-rollup-contract-client'
|
|
|
|
dependencies {
|
|
// this shall be very lightweight dependency, just export the generated sources
|
|
compileOnly("org.web3j:core:${libs.versions.web3j.get()}") {
|
|
exclude group: 'org.slf4j', module: 'slf4j-nop'
|
|
}
|
|
}
|
|
|
|
web3jContractWrappers {
|
|
def contractsDir = layout.buildDirectory.dir("${rootProject.projectDir}/contracts/abi").get()
|
|
def contractV6Abi = contractsDir.file("LineaRollupV6.0.abi").asFile.absolutePath
|
|
|
|
contractsPackage = "build.linea.contract"
|
|
contracts = [
|
|
"$contractV6Abi": "LineaRollupV6"
|
|
]
|
|
}
|