代码拉取完成,页面将自动刷新
同步操作将从 adrninistrator/java-callgraph2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'idea'
group 'com.github.adrninistrator'
version = "1.0.18"
def projectName = "java-callgraph2"
description = "${projectName}"
sourceCompatibility = 1.8
targetCompatibility = 1.8
def jar_output_dir = "jar_output_dir"
def defaultEncoding = 'UTF-8'
[compileJava, compileTestJava]*.options*.encoding = defaultEncoding
project.buildDir = 'build'
repositories {
mavenCentral()
}
clean {
delete 'build'
delete "${jar_output_dir}"
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
test {
java {
srcDir 'src/test/java'
}
resources {
srcDir 'src/test/resources'
}
}
}
// 6.7.0版本LDC.getValue()会报错,不使用
List bcel = ['org.apache.bcel:bcel:6.6.0']
List junit = ['junit:junit:4.13.2']
dependencies {
compile bcel
testImplementation junit
}
compileJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
processResources {
setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
}
task createProject {
doFirst {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
}
// 生成可以直接执行的jar包,并拷贝相关文件
task gen_run_jar(type: Jar) {
archiveName 'run_javacg2.jar'
from(sourceSets.main.output) {
into '/'
}
doLast{
copy {
from 'build/libs/run_javacg2.jar'
into "${jar_output_dir}/jar/"
}
copy {
from 'src/main/resources/_javacg_config/'
into "${jar_output_dir}/_javacg_config/"
}
copy {
from 'run.bat'
into "${jar_output_dir}/"
}
copy {
from 'run.sh'
into "${jar_output_dir}/"
}
copy {
from configurations.runtimeClasspath
into "${jar_output_dir}/lib"
}
}
}
idea {
module {
// and some extra dirs that should be excluded by IDEA
excludeDirs += file('.idea')
excludeDirs += file('gradle')
excludeDirs += file('jar_output_dir')
excludeDirs += file('log_javacg')
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。