Skip to content
Snippets Groups Projects
Select Git revision
  • 4a5a0d4b3b5cdf2aad0dae40c7c13fdafee9b477
  • master default protected
  • emoUS
  • add_default_vectorizer_and_pretrained_loading
  • clean_code
  • readme
  • issue127
  • generalized_action_dicts
  • ppo_num_dialogues
  • crossowoz_ddpt
  • issue_114
  • robust_masking_feature
  • scgpt_exp
  • e2e-soloist
  • convlab_exp
  • change_system_act_in_env
  • pre-training
  • nlg-scgpt
  • remapping_actions
  • soloist
20 results

dummy_data.json

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    build.gradle 4.22 KiB
    plugins {
    	id 'java'
    	id 'eclipse'
    	id 'jacoco'
    	id "maven-publish"
    	id "signing"
    	id "de.undercouch.download" version "5.4.0"
    }
    
    project.version = '1.0.5-SNAPSHOT'
    project.group = 'de.hhu.stups'
    
    final isSnapshot = project.version.endsWith("-SNAPSHOT")
    
    repositories {
    	mavenCentral()
    	if (isSnapshot) {
    		maven {
    			name "sonatype snapshots"
    			url "https://oss.sonatype.org/content/repositories/snapshots"
    		}
    	}
    }
    
    configurations.all {
    	resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
    }
    
    def parser_version = '2.9.25'
    def tlatools_version = '1.0.2'
    
    dependencies {
    	//implementation(group: 'com.microsoft', name: 'tla2tools', version: '1.4.6')
    	implementation(group: 'commons-cli', name: 'commons-cli', version: '1.5.0')
    	implementation(group: 'de.hhu.stups', name: 'tlatools', version: tlatools_version)
    
    	implementation(group: 'de.hhu.stups', name: 'bparser', version: parser_version)
    	implementation(group: 'de.hhu.stups', name: 'ltlparser', version: parser_version)
    
    	testImplementation(group: 'junit', name: 'junit', version: '4.13.2')
    	testImplementation(group: 'de.hhu.stups', name: 'tla2bAST', version: '1.1.3')
    }
    
    java {
    	project.sourceCompatibility = JavaVersion.VERSION_1_7
    	project.targetCompatibility = JavaVersion.VERSION_1_7
    	
    	withSourcesJar()
    	withJavadocJar()
    }
    
    jacoco {
    	toolVersion = "0.8.7"
    	reportsDirectory = file("$buildDir/JacocoReports")
    }
    
    
    jacocoTestReport {
    	reports {
    		xml.required = false
    		csv.required = false
    		html.destination file("${buildDir}/jacocoHtml")
    	}
    }
    
    
    test {
    	exclude('de/tlc4b/tlc/integration/probprivate')
    	exclude('testing')
    	//exclude('de/tlc4b/tlc/integration')
    }
    
    task downloadPublicExamples(type: Download) {
    	src 'https://stups.hhu-hosting.de/downloads/prob/source/ProB_public_examples.tgz'
    	dest buildDir
    	onlyIfModified true
    }
    
    task extractPublicExamples(dependsOn: downloadPublicExamples, type: Copy) {
    	from tarTree(resources.gzip("${buildDir}/ProB_public_examples.tgz"))
    	into "${buildDir}/prob_examples"
    	include "public_examples/TLC/**"
    }
    
    clean {
    	delete "${projectDir}/public_examples" // now extracted into build, but previous versions placed it at top level
    	delete "${projectDir}/states"
    	delete "${projectDir}/temp"
    }
    
    task regressionTests(dependsOn: extractPublicExamples, type: Test) {
    	include('de/tlc4b/tlc/integration/probprivate/**')
    }
    check.dependsOn(regressionTests)
    
    // type 'gradle integrationTests jacocoIntegrationTestReport' in order to run the jacoco code coverage analysis
    task jacocoIntegrationTestReport(type: JacocoReport) {
    	sourceSets sourceSets.main
    	//executionData files('build/jacoco/integrationTests.exec')
    	executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
    }
    
    task createJar(type: Jar, dependsOn: build){
    	archiveFileName = 'TLC4B.jar'
    	from sourceSets.main.output
    	from {configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
    	exclude('**/*.java')
    	manifest {
    		attributes "Main-Class" : 'de.tlc4b.TLC4B'
    	}
    }
    
    publishing {
    	publications {
    		mavenJava(MavenPublication) {
    			from components.java
    
    			pom {
    				name = "TLC integration into ProB"
    				description = "Use the TLC model checker within ProB."
    				url = "https://github.com/hhu-stups/tlc4b"
    
    				licenses {
    					license {
    						name = "Eclipse Public License, Version 2.1"
    						url = "https://www.eclipse.org/legal/epl-v10.html"
    					}
    				}
    
    				scm {
    					connection = "scm:git:git://github.com/hhu-stups/tlc4b.git"
    					developerConnection = "scm:git:git@github.com:hhu-stups/tlc4b.git"
    					url = "https://github.com/bendisposto/hhu-stups/tlc4b"
    				}
    
    				developers {
    					developer {
    						id = "bendisposto"
    						name = "Jens Bendisposto"
    						email = "jens@bendisposto.de"
    					}
    				}
    			}
    		}
    	}
    
    	repositories {
    		maven {
    			final releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
    			final snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
    			url isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
    			if (project.hasProperty("ossrhUsername") && project.hasProperty("ossrhPassword")) {
    				credentials {
    					username project.ossrhUsername
    					password project.ossrhPassword
    				}
    			}
    		}
    	}
    }
    
    ext."signing.secretKeyRingFile" = rootProject.file("secring.gpg").absolutePath
    
    signing {
    	sign publishing.publications.mavenJava
    }