代码拉取完成,页面将自动刷新
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。