代码拉取完成,页面将自动刷新
group 'com.zrscsoft'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
ext {
profile = System.getProperty("env") ?: "dev"
println "[current profile]:" + profile
}
repositories {
maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
maven{ url "http://maven.aliyun.com/nexus/content/repositories/jcenter"}
mavenCentral()
flatDir {dirs 'libs'}
}
dependencies {
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0';
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5';
compile group: 'org.apache.poi', name: 'poi', version: '3.9';
compile group: 'org.apache.poi', name: 'poi-excelant', version: '3.9';
compile group: 'org.apache.poi', name: 'poi-scratchpad', version: '3.9';
compile group: 'junit', name: 'junit', version: '4.12';
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation group: 'com.google.zxing', name: 'core', version: '3.4.1'
implementation group: 'com.intellij', name: 'forms_rt', version: '7.0.3'
implementation fileTree(dir:'libs',include:['*.jar'])
}
sourceSets {
main {
resources {
srcDirs = ["src/main/resources", "env/$profile"]
}
}
}
jar {
String someString = ''
configurations.runtime.each {someString = someString + " lib//"+it.name}
manifest {
attributes 'Main-Class': 'com.xbs.AppMain'
attributes 'Class-Path': someString
}
}
//清除上次的编译过的文件
task clearPj(type:Delete){
delete 'build','target'
}
task copyJar(type:Copy){
from configurations.runtime
into ('build/libs/lib')
}
//把JAR复制到目标目录
task release(type: Copy,dependsOn: [build,copyJar]) {
// from 'conf'
// into ('build/libs/eachend/conf') // 目标位置
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。