Skip to content
Snippets Groups Projects
Select Git revision
  • fc23796ff8c6f63eb97885b0bb1824c544707cf9
  • develop default protected
  • 0.2.1
  • 0.2.0
  • 0.1.0
5 results

build.gradle

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    build.gradle 2.49 KiB
    plugins {
    	id("java-library")
    	id("maven-publish")
    	id("signing")
    	
    	id("de.hhu.stups.sablecc").version("1.1.0")
    }
    
    project.group = "de.hhu.stups"
    project.version = "0.2.1-SNAPSHOT"
    
    final isSnapshot = project.version.endsWith("-SNAPSHOT")
    
    final SOURCE_ENCODING = "UTF-8"
    
    repositories {
    	mavenCentral()
    	if (isSnapshot) {
    		maven {
    			name "Sonatype snapshots"
    			url "https://oss.sonatype.org/content/repositories/snapshots/"
    		}
    	}
    }
    
    dependencies {
    	final sableCCVersion = "3.5.0"
    	sableCC(group: "de.hhu.stups", name: "sablecc", version: sableCCVersion)
    	api(group: "de.hhu.stups", name: "sablecc-runtime", version: sableCCVersion)
    	implementation(group: "com.github.krukow", name: "clj-ds", version: "0.0.4")
    	testImplementation(group: "junit", name: "junit", version: "4.13.2")
    }
    
    configurations.all {
    	resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
    }
    
    java {
    	sourceCompatibility = JavaVersion.VERSION_1_8
    	targetCompatibility = JavaVersion.VERSION_1_8
    	
    	withSourcesJar()
    	withJavadocJar()
    }
    
    tasks.withType(JavaCompile) {
    	options.encoding = SOURCE_ENCODING
    }
    
    tasks.withType(Javadoc) {
    	options.encoding = SOURCE_ENCODING
    }
    
    publishing {
    	publications {
    		mavenJava(MavenPublication) {
    			from components.java
    			pom {
    				name = project.name
    				description = "ProB Validation Obligation parser"
    				url = "https://gitlab.cs.uni-duesseldorf.de/general/stups/vo_parser"
    				licenses {
    					license {
    						name = "Eclipse Public License, Version 1.0"
    						url = "http://www.eclipse.org/org/documents/epl-v10.html"
    					}
    				}
    				scm {
    					connection = "scm:git:https://gitlab.cs.uni-duesseldorf.de/general/stups/vo_parser"
    					developerConnection = "scm:git:git@gitlab.cs.uni-duesseldorf.de:general/stups/vo_parser.git"