MessagePack/build.gradle

108 lines
2.7 KiB
Groovy
Raw Permalink Normal View History

buildscript {
ext.kotlin_version = '1.1.60'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
2017-01-18 17:34:20 +01:00
apply plugin: 'java'
apply plugin: 'kotlin'
2017-01-18 17:34:20 +01:00
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'jacoco'
apply plugin: 'gitflow-version'
sourceCompatibility = 1.7
2017-01-23 17:26:33 +01:00
group = 'ch.dissem.msgpack'
2017-01-18 17:34:20 +01:00
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
2017-01-18 17:34:20 +01:00
testCompile group: 'junit', name: 'junit', version: '4.11'
}
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 { isRelease && 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 'msgpack'
description 'A simple Java library for handling MessagePack data'
2017-01-18 17:34:20 +01:00
packaging 'jar'
2017-01-23 17:26:33 +01:00
url 'https://dissem.ch/msgpack'
2017-01-18 17:34:20 +01:00
scm {
2017-01-25 22:41:57 +01:00
connection 'scm:git:https://git.dissem.ch/chris/MessagePack.git'
developerConnection 'scm:git:git@git.dissem.ch:chris/MessagePack.git'
url 'https://git.dissem.ch/chris/MessagePack.git'
2017-01-18 17:34:20 +01:00
}
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