Skip to content
Snippets Groups Projects
Select Git revision
  • develop default protected
  • master protected
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.0
10 results

build.gradle

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    build.gradle 2.85 KiB
    apply plugin: 'java'
    apply plugin: 'eclipse'
    apply plugin: 'maven'
    apply plugin: 'jacoco'
    apply plugin: 'findbugs'
    
    project.version = '1.0.0-SNAPSHOT'
    project.group = 'de.prob'
    
    sourceCompatibility = 1.5
    
    repositories {
    	mavenCentral()
    	maven {
    	    	url "http://cobra.cs.uni-duesseldorf.de/artifactory/repo"
    	}
    }
    
    configurations { // configuration that holds jars to copy into lib
    	releaseJars 
    }
     
    def parser_version = '2.4.28-SNAPSHOT'
    
    dependencies {
    	//compile (group: 'com.microsoft', name: 'tla2tools', version: '1.4.6')
    	compile (group: 'de.tla', name: 'tlatools', version: '1.0.0-SNAPSHOT')
    	
    	compile (group: 'de.prob', name: 'prologlib', version: parser_version)
    	compile (group: 'de.prob', name: 'parserbase', version: parser_version)
    	compile (group: 'de.prob', name: 'bparser', version: parser_version)
    	compile (group: 'de.prob', name: 'ltlparser', version: parser_version)
    	
    	//compile(group: 'de.prob', name: 'de.prob.core.kernel', version: '2.0.0-milestone-13-SNAPSHOT')
    
    
    
    	testCompile (group: 'junit', name: 'junit', version: '4.7')
        testCompile (group: 'de.prob', name: 'tla2bAST', version: '1.0.5-SNAPSHOT')
    
    	releaseJars (group: 'de.tla', name: 'tlatools', version: '1.0.0-SNAPSHOT')
    	releaseJars (group: 'de.prob', name: 'prologlib', version: parser_version)
    	releaseJars (group: 'de.prob', name: 'parserbase', version: parser_version)
    	releaseJars (group: 'de.prob', name: 'bparser', version: parser_version)
    	releaseJars (group: 'de.prob', name: 'ltlparser', version: parser_version)
    }
    
    jacoco {
        toolVersion = "0.6.2.201302030002"
        reportsDir = file("$buildDir/customJacocoReportDir")
    }
    
    jacocoTestReport {
        reports {
            xml.enabled false
            csv.enabled false
            html.destination "${buildDir}/jacocoHtml"
        }
    }
    
    tasks.withType(FindBugs) {
        reports {
            xml.enabled = false
            html.enabled = true
        }
    }
    
    findbugs { 
    	ignoreFailures = true 
    } 
     
    
    
    test { 
    	exclude('de/tlc4b/tlc/integration/probprivate')
    	exclude('testing')
    	//exclude('de/tlc4b/tlc/integration')
    }
    
    
    task integrationtests(type: Test){
    	doFirst{ println("Running integration tests") }
    	scanForTestClasses = true
    	//include('de/tlc4b/tlc/integration/probprivate/**')
    	include('de/tlc4b/**')
    }
    
    jar { from sourceSets.main.allJava }
    jar	{
    	from configurations.releaseJars.collect { it.isDirectory() ? it : zipTree(it) }
    }
    jar {
        manifest {
            attributes "Main-Class" : 'de.tlc4b.TLC4B'
            attributes "Class-Path": 'tlatools.jar'
        }
    }
    
    
    task tlc4b(dependsOn: build) << {
    	copy {
    		from('build/libs/')
    		into('build/tlc4b')
    		include('tlc4b-'+project.version+'.jar')
    		rename('tlc4b-(.+)', 'TLC4B.jar')
    	}
    }
    
    task all(dependsOn: tlc4b) <<{
    	ant.get(src: 'http://tla.msr-inria.inria.fr/tlatoolbox/dist/tla2tools.jar', verbose:true, dest: 'build/tlc4b/')
    }