93 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			93 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| subprojects {
 | |
|     apply plugin: 'java'
 | |
|     apply plugin: 'maven'
 | |
|     apply plugin: 'signing'
 | |
|     apply plugin: 'jacoco'
 | |
| 
 | |
|     sourceCompatibility = 1.7
 | |
|     group = 'ch.dissem.jabit'
 | |
|     version = '1.1.0-SNAPSHOT'
 | |
| 
 | |
|     ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
 | |
| 
 | |
|     repositories {
 | |
|         mavenCentral()
 | |
|     }
 | |
| 
 | |
|     test {
 | |
|         testLogging {
 | |
|             exceptionFormat = 'full'
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     task javadocJar(type: Jar) {
 | |
|         classifier = 'javadoc'
 | |
|         from javadoc
 | |
|     }
 | |
| 
 | |
|     task sourcesJar(type: Jar) {
 | |
|         classifier = 'sources'
 | |
|         from sourceSets.main.allSource
 | |
|     }
 | |
| 
 | |
|     artifacts {
 | |
|         archives javadocJar, sourcesJar
 | |
|     }
 | |
| 
 | |
|     signing {
 | |
|         required { isReleaseVersion && project.getProperties().get("signing.keyId")?.length() > 0 }
 | |
|         sign configurations.archives
 | |
|     }
 | |
| 
 | |
|     uploadArchives {
 | |
|         repositories {
 | |
|             mavenDeployer {
 | |
|                 beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
 | |
| 
 | |
|                 repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
 | |
|                     authentication(userName: ossrhUsername, password: ossrhPassword)
 | |
|                 }
 | |
| 
 | |
|                 snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
 | |
|                     authentication(userName: ossrhUsername, password: ossrhPassword)
 | |
|                 }
 | |
| 
 | |
|                 pom.project {
 | |
|                     name 'Jabit'
 | |
|                     packaging 'jar'
 | |
|                     url 'https://github.com/Dissem/Jabit'
 | |
| 
 | |
|                     scm {
 | |
|                         connection 'scm:git:https://github.com/Dissem/Jabit.git'
 | |
|                         developerConnection 'scm:git:git@github.com:Dissem/Jabit.git'
 | |
|                         url 'https://github.com/Dissem/Jabit.git'
 | |
|                     }
 | |
| 
 | |
|                     licenses {
 | |
|                         license {
 | |
|                             name 'The Apache License, Version 2.0'
 | |
|                             url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
 | |
|                         }
 | |
|                     }
 | |
| 
 | |
|                     developers {
 | |
|                         developer {
 | |
|                             name 'Christian Basler'
 | |
|                             email 'chrigu.meyer@gmail.com'
 | |
|                         }
 | |
|                     }
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     jacocoTestReport {
 | |
|         reports {
 | |
|             xml.enabled = true
 | |
|             html.enabled = true
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     check.dependsOn jacocoTestReport
 | |
| }
 |