代码拉取完成,页面将自动刷新
同步操作将从 黄天政/codgen 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
group 'com.bcs.codgen'
version '1.0.8'
/*自带插件*/
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
/*UTF-8 很重要*/
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.warnings = false
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}
/*javadoc {
options.charSet = 'UTF-8'
}*/
/*compileJava {
options.compilerArgs << '-XDignore.symbol.file'
options.fork = true
println("$System.env.USER")
println("detected JAVA_HOME=$System.env.JAVA_HOME")
println("setting options.bootClasspath = $System.env.JAVA_HOME/jre/lib/rt.jar")
options.bootClasspath = "$System.env.JAVA_HOME/jre/lib/rt.jar"
}*/
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile ('javax.xml:jaxb-impl:2.1')
compile ('commons-lang:commons-lang:2.6')
compile ('commons-logging:commons-logging:1.2')
compile ('log4j:log4j:1.2.17')
compile ("org.freemarker:freemarker:2.3.20")
}
//依赖编译,然后打包JAR
task taskJar(type:Jar, dependsOn: compileJava) {
from compileJava.destinationDir
destinationDir = file('dist')
manifest {
attributes 'Manifest-Version': version
attributes 'Created-By': 'tengen'
}
}
//生成源码jar
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
destinationDir = file('dist')
}
//生成javadoc的jar
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
destinationDir = file('dist')
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。