代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Jetty Runner 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// Prior to running gradle please run the create_repo.sh or create_repo_cygwin.sh
// the script is on the scripts folder
// To run all tests and generate all reports:
// $gradle clean test check --info
// Plugins repository
buildscript {
repositories {
mavenCentral()
}
dependencies {
// Cobertura code coverage with unit tests
classpath "net.saliman:gradle-cobertura-plugin:2.2.7"
}
}
// Plugins used
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'pmd'
apply plugin: 'findbugs'
apply plugin: 'checkstyle'
apply plugin: 'cobertura'
// Source and Target are Java 8
sourceCompatibility = 1.8
targetCompatibility = 1.8
// Repositories for the project itself
// Files under lib and maven local and central
repositories {
flatDir {
dirs 'lib/compile'
}
mavenLocal()
mavenCentral()
}
// Project dependencies
dependencies {
// Third Party dependencies - Local lib folder
compile(name : 'jetty-runner-9.4.6.v20170531')
// IntelliJ CE Dependencies - Copy.com/Repo
compile('com.github.guikeller.jetty-runner:util:2017.1')
compile('com.github.guikeller.jetty-runner:idea:2017.1')
compile('com.github.guikeller.jetty-runner:idea_rt:2017.1')
compile('com.github.guikeller.jetty-runner:openapi:2017.1')
compile('com.github.guikeller.jetty-runner:annotations:2017.1')
compile('com.github.guikeller.jetty-runner:jdom:2017.1')
compile('com.github.guikeller.jetty-runner:extensions:2017.1')
// IntelliJ CE Dependencies - Test - Copy.com/Repo
testCompile('com.github.guikeller.jetty-runner:trove4j:2017.1')
testCompile('picocontainer:picocontainer:1.2')
testCompile('log4j:log4j:1.2.17')
testCompile('org.slf4j:slf4j-api:1.7.25')
testCompile('org.slf4j:slf4j-log4j12:1.7.25')
// Unit Test Dependencies - Local lib folder
testCompile('cglib:cglib-nodep:2.2.2')
testCompile('org.javassist:javassist:3.21.0-GA')
testCompile('org.objenesis:objenesis:2.6')
testCompile('junit:junit:4.11')
testCompile('org.mockito:mockito-all:1.9.5')
testCompile('org.powermock:powermock-mockito-release-full:1.5.6')
}
// Configuring plugins - Code Analysis
// JUnit
test {
reports {
junitXml.enabled = false
html.enabled = true
}
}
// FindBugs
tasks.withType(FindBugs) {
ignoreFailures = true
reports {
xml.enabled = false
html.enabled = true
}
}
// Checkstyle
tasks.withType(Checkstyle) {
ignoreFailures = true
configFile = new File('src/test/resources/checkstyle.xml')
}
// checkstyle to generate html
task checkstyleHtml << {
ant.xslt(in: checkstyleMain.reports.xml.destination,
style: 'src/test/resources/checkstyle.xslt',
out: new File(checkstyleMain.reports.xml.destination.parent, 'main.html'))
}
checkstyleMain.finalizedBy checkstyleHtml
// PMD
tasks.withType(Pmd) {
ignoreFailures = true
reports {
xml.enabled = false
html.enabled = true
}
}
// add CPD to check (Copy Paste Detector)
check << {
// Create dir
File outDir = new File('build/reports/cpd/')
outDir.mkdirs()
// Runs defines and runs the task
ant.taskdef(name: 'cpd', classname: 'net.sourceforge.pmd.cpd.CPDTask', classpath: configurations.pmd.asPath)
ant.cpd(minimumTokenCount: '100', format: 'xml', outputFile: new File(outDir , 'cpd.xml')) {
fileset(dir: "src/main/java") {
include(name: '**/*.java')
}
}
// Transform the cpd xml into html
ant.xslt( in : 'build/reports/cpd/cpd.xml',
style : 'src/test/resources/cpd.xslt',
out : 'build/reports/cpd/cpd.html')
}
// Adding Cobertura to the test goal/target - instrumentation
test.dependsOn coberturaCheck
// Thanks for using IDEA Jetty Runner
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。