| 
									
										
										
										
											2017-06-06 16:36:07 +02:00
										 |  |  | buildscript { | 
					
						
							| 
									
										
										
										
											2017-06-25 20:06:17 +02:00
										 |  |  |     ext.kotlin_version = '1.1.3' | 
					
						
							| 
									
										
										
										
											2017-06-06 16:36:07 +02:00
										 |  |  |     repositories { | 
					
						
							|  |  |  |         mavenCentral() | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     dependencies { | 
					
						
							|  |  |  |         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-04 07:31:37 +02:00
										 |  |  | plugins { | 
					
						
							| 
									
										
										
										
											2017-07-02 08:37:43 +02:00
										 |  |  |     id 'com.github.ben-manes.versions' version '0.15.0' | 
					
						
							| 
									
										
										
										
											2017-07-02 11:46:27 +02:00
										 |  |  |     id "io.spring.dependency-management" version "1.0.3.RELEASE" | 
					
						
							| 
									
										
										
										
											2017-04-03 18:21:08 +02:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  | subprojects { | 
					
						
							| 
									
										
										
										
											2017-06-06 16:36:07 +02:00
										 |  |  |     apply plugin: 'kotlin' | 
					
						
							| 
									
										
										
										
											2015-06-18 21:26:08 +02:00
										 |  |  |     apply plugin: 'maven' | 
					
						
							|  |  |  |     apply plugin: 'signing' | 
					
						
							| 
									
										
										
										
											2016-02-03 17:32:04 +01:00
										 |  |  |     apply plugin: 'jacoco' | 
					
						
							| 
									
										
										
										
											2016-08-12 22:02:06 +02:00
										 |  |  |     apply plugin: 'gitflow-version' | 
					
						
							| 
									
										
										
										
											2017-07-02 11:46:27 +02:00
										 |  |  |     apply plugin: 'io.spring.dependency-management' | 
					
						
							| 
									
										
										
										
											2017-04-03 18:21:08 +02:00
										 |  |  |     apply plugin: 'com.github.ben-manes.versions' | 
					
						
							| 
									
										
										
										
											2015-03-20 14:18:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-18 21:26:08 +02:00
										 |  |  |     sourceCompatibility = 1.7 | 
					
						
							| 
									
										
										
										
											2017-07-02 08:37:43 +02:00
										 |  |  |     targetCompatibility = 1.7 | 
					
						
							| 
									
										
										
										
											2015-06-18 21:26:08 +02:00
										 |  |  |     group = 'ch.dissem.jabit' | 
					
						
							| 
									
										
										
										
											2015-03-20 14:18:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-18 21:26:08 +02:00
										 |  |  |     repositories { | 
					
						
							|  |  |  |         mavenCentral() | 
					
						
							| 
									
										
										
										
											2017-02-03 07:29:51 +01:00
										 |  |  |         maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } | 
					
						
							| 
									
										
										
										
											2015-06-18 21:26:08 +02:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2017-06-06 16:36:07 +02:00
										 |  |  |     dependencies { | 
					
						
							| 
									
										
										
										
											2017-07-02 11:46:27 +02:00
										 |  |  |         compile "org.jetbrains.kotlin:kotlin-stdlib-jre7" | 
					
						
							|  |  |  |         compile "org.jetbrains.kotlin:kotlin-reflect" | 
					
						
							| 
									
										
										
										
											2017-06-06 16:36:07 +02:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2015-03-20 14:18:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-15 15:34:04 +02:00
										 |  |  |     test { | 
					
						
							|  |  |  |         testLogging { | 
					
						
							|  |  |  |             exceptionFormat = 'full' | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-18 21:26:08 +02:00
										 |  |  |     task javadocJar(type: Jar) { | 
					
						
							|  |  |  |         classifier = 'javadoc' | 
					
						
							|  |  |  |         from javadoc | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     task sourcesJar(type: Jar) { | 
					
						
							|  |  |  |         classifier = 'sources' | 
					
						
							|  |  |  |         from sourceSets.main.allSource | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     artifacts { | 
					
						
							|  |  |  |         archives javadocJar, sourcesJar | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-05 00:37:45 +02:00
										 |  |  |     jar { | 
					
						
							|  |  |  |         manifest { | 
					
						
							|  |  |  |             attributes 'Implementation-Title': "Jabit ${project.name.capitalize()}", | 
					
						
							|  |  |  |                        'Implementation-Version': version | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         baseName "jabit-${project.name}" | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |     signing { | 
					
						
							| 
									
										
										
										
											2016-08-12 22:02:06 +02:00
										 |  |  |         required { isRelease && project.getProperties().get("signing.keyId")?.length() > 0 } | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |         sign configurations.archives | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |     uploadArchives { | 
					
						
							|  |  |  |         repositories { | 
					
						
							|  |  |  |             mavenDeployer { | 
					
						
							|  |  |  |                 beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |                 repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | 
					
						
							|  |  |  |                     authentication(userName: ossrhUsername, password: ossrhPassword) | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |                 snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | 
					
						
							|  |  |  |                     authentication(userName: ossrhUsername, password: ossrhPassword) | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |                 pom.project { | 
					
						
							|  |  |  |                     name 'Jabit' | 
					
						
							|  |  |  |                     packaging 'jar' | 
					
						
							|  |  |  |                     url 'https://github.com/Dissem/Jabit' | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |                     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' | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  |                         } | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |                     } | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 14:47:25 +02:00
										 |  |  |                     developers { | 
					
						
							|  |  |  |                         developer { | 
					
						
							|  |  |  |                             name 'Christian Basler' | 
					
						
							|  |  |  |                             email 'chrigu.meyer@gmail.com' | 
					
						
							| 
									
										
										
										
											2015-06-21 08:58:49 +02:00
										 |  |  |                         } | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2016-02-03 17:32:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     jacocoTestReport { | 
					
						
							|  |  |  |         reports { | 
					
						
							|  |  |  |             xml.enabled = true | 
					
						
							|  |  |  |             html.enabled = true | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     check.dependsOn jacocoTestReport | 
					
						
							| 
									
										
										
										
											2017-07-02 11:46:27 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     dependencyManagement { | 
					
						
							|  |  |  |         dependencies { | 
					
						
							|  |  |  |             dependencySet(group: 'org.jetbrains.kotlin', version: "$kotlin_version") { | 
					
						
							|  |  |  |                 entry 'kotlin-stdlib-jre7' | 
					
						
							|  |  |  |                 entry 'kotlin-reflect' | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             dependencySet(group: 'org.slf4j', version: '1.7.25') { | 
					
						
							|  |  |  |                 entry 'slf4j-api' | 
					
						
							|  |  |  |                 entry 'slf4j-simple' | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             dependency 'ch.dissem.msgpack:msgpack:1.0.0' | 
					
						
							|  |  |  |             dependency 'org.bouncycastle:bcprov-jdk15on:1.57' | 
					
						
							|  |  |  |             dependency 'com.madgag.spongycastle:prov:1.56.0.0' | 
					
						
							|  |  |  |             dependency 'org.apache.commons:commons-lang3:3.6' | 
					
						
							|  |  |  |             dependency 'org.flywaydb:flyway-core:4.2.0' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             dependency 'args4j:args4j:2.33' | 
					
						
							|  |  |  |             dependency 'org.ini4j:ini4j:0.5.4' | 
					
						
							|  |  |  |             dependency 'com.h2database:h2:1.4.196' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             dependency 'junit:junit:4.12' | 
					
						
							|  |  |  |             dependency 'org.hamcrest:hamcrest-library:1.3' | 
					
						
							|  |  |  |             dependency 'com.nhaarman:mockito-kotlin:1.5.0' | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2016-02-03 17:32:04 +01:00
										 |  |  | } |