[build.gradle]

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'findbugs'
apply plugin: 'pmd'

repositories {
    mavenCentral()
}

sourceCompatibility = 1.7
version = '1.0'
jar {
    manifest {
        attributes 'Implementation-Title': 'StudyPd3Sample', 'Implementation-Version': version
    }
}
group = 'pe.kr.ddakker'


findbugs {
	toolVersion = "2.0.1"
	sourceSets = [sourceSets.main]
	ignoreFailures = true
	reportsDir = file("$project.buildDir/findbugsReports")
	effort = "default"
	reportLevel = "medium"
	includeFilter = file("$rootProject.projectDir/config/findbugs/includeFilter.xml")
	excludeFilter = file("$rootProject.projectDir/config/findbugs/excludeFilter.xml")
}

tasks.withType(FindBugs) {
    reports {
        xml.enabled = true
        html.enabled = false
    }
}



pmd {
	ignoreFailures = true
	toolVersion = "2.0.1"
	ruleSetFiles = files("$rootProject.projectDir/config/pmd/myRuleSet.xml")
}


dependencies {
    compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
    //compile "com.google.code.findbugs:annotations:2.0.1"
    //findbugs "com.google.code.findbugs:findbugs-ant:2.0.1"
    pmd group:'pmd', name:'pmd', version:'4.2.5'
    testCompile group: 'junit', name: 'junit', version: '4.11'
}


test {
    systemProperties 'property': 'value'
}

uploadArchives {
    repositories {
       flatDir {
           dirs 'repos'
       }
    }
}

tasks.withType(Compile) {
    options.encoding = 'UTF-8'
}
/*
javadoc {
    options.addStringOption("locale","ko_KR");
    options.addStringOption("encoding","UTF-8");
    options.addStringOption("charset","UTF-8");
    options.addStringOption("docencoding","UTF-8");
}
*/


[/config/pmd/myRuleSet.xml]




    
    	
    
    
    
    
        
    
    
        
        
        
        
        
        
    


[/config/findbugs/includeFilter.xml]



	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	


[/config/findbugs/excludeFilter.xml]



	
		
	


+ Recent posts