2 Star 1 Fork 0

dafei1288/max

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 1.91 KB
一键复制 编辑 原始数据 按行查看 历史
lijiaqi 提交于 2018-04-17 10:14 . update doc
group 'com.dafei1288'
version '0.0.1-alpha'
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
mavenCentral()
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '24.0-jre'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
compile group: 'org.antlr', name: 'antlr4-runtime', version: '4.7.1'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.19'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.6'
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
compile group: 'org.openjdk.jmh', name: 'jmh-core', version: '1.20'
compile group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.20'
}
//编译groovy代码时采用 UTF-8
tasks.withType(GroovyCompile) {
groovyOptions.encoding = "MacRoman"
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
//fix 编码 GBK 的不可映射字符
//如果生成javadoc出现编码问题添加
javadoc {
options{
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
links "https://github.com/dafei1288/max"
title "Max 致力于协助初级开发者简单实用lambda表达式"
}
}
//参见Part 2, 为项目生成**.jar/**-javadoc.jar/**-sources.jar
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dafei1288/max.git
git@gitee.com:dafei1288/max.git
dafei1288
max
max
master

搜索帮助