在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jruyi/thrift-gradle-plugin开源软件地址(OpenSource Url):https://github.com/jruyi/thrift-gradle-plugin开源编程语言(OpenSource Language):Groovy 90.4%开源软件介绍(OpenSource Introduction):Gradle Thrift PluginGradle Thrift Plugin uses thrift compiler to compile Thrift IDL files. UsageTo use this plugin, add the following to your build script. buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.org.jruyi.gradle:thrift-gradle-plugin:0.4.2"
}
}
apply plugin: "org.jruyi.thrift" Or for Gradle 2.1+: plugins {
id "org.jruyi.thrift" version "0.4.2"
} ExampleSee the Implicitly Applied PluginsNone. TasksThe Thrift plugin adds compileThrift task which compiles Thrift IDL files using thrift compiler. Table-1 Task Properties of compileThrift
If createGenFolder is set to false, no gen-* folder will be created. sourceDir is only used for backward compatibility sourceItems are a set of sources, which will be used for generating java files from thrift. A source can either be a path specified as a string or a file. In case a source is a relative path the source will be relative to srcDir. In case a source is a directory, the directory will be scanned recursively for *.thrift files and used. ExamplecompileThrift {
recurse true
generator 'html'
generator 'java', 'private-members'
} Default BehaviorsWhen JavaPlugin is applied, generator 'java' will be created and the generated java code will be added to Java source automatically. Using Thrift on TravisUbuntu 14.04 (Trusty) provides Thrift 0.9.0. If this version fits your requirements, you can use the following
LicenseGradle Thrift Plugin is licensed under the Apache License, Version 2.0. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论