4 Star 2 Fork 1

小流氓 / protoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
小流氓 提交于 2016-12-09 17:21 . 修正PB代码生成工具配置
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'findbugs'
version = '1.0.0.Final'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.+'
}
jar {
manifest.attributes provider: '小流氓'
manifest.attributes["Created-By"] = "${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
manifest.attributes["Implementation-Title"] = project.name
manifest.attributes["Implementation-Version"] = project.version
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
javadoc{
options{
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
links "http://docs.oracle.com/javase/8/docs/api/"
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
// 创建Java工程目录
task mkdir << {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs()}
}
}
Java
1
https://gitee.com/xiaoe/protoc.git
git@gitee.com:xiaoe/protoc.git
xiaoe
protoc
protoc
master

搜索帮助