在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):web3j/web3j-gradle-plugin开源软件地址(OpenSource Url):https://github.com/web3j/web3j-gradle-plugin开源编程语言(OpenSource Language):Java 77.7%开源软件介绍(OpenSource Introduction):Web3j Gradle PluginGradle plugin that generates Web3j Java wrappers from Solidity smart contracts. It smoothly integrates with your project's build lifecycle by adding specific tasks that can be also run independently. Plugin configurationTo configure the Web3j Gradle Plugin using the plugins DSL or the legacy plugin application,
check the plugin page.
The minimum Gradle version to run the plugin is Then run your project containing Solidity contracts:
After applying the plugin, the base directory for generated code (by default
Code generationThe web3j {
generatedPackageName = 'com.mycompany.{0}'
generatedFilesBaseDir = "$buildDir/custom/destination"
excludedContracts = ['Ownable']
useNativeJavaTypes = false
} The properties accepted by the DSL are listed in the following table:
The For instance, a Also, the default value contains the Note that message format parameters are not Gradle properties and should not be preceded by Source setsBy default, all sourceSets {
main {
solidity {
srcDir {
"my/custom/path/to/solidity"
}
}
}
} Check the Solidity Plugin documentation to configure the smart contracts source code directories. Output directories for generated smart contract wrappers Java code will be added to your build automatically. Plugin tasksThe Java Plugin
adds tasks to your project build using a naming convention on a per source set basis
(i.e. Similarly, the Solidity plugin will add the To obtain a list and description of all added tasks, run the command:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论