2014-06-08 13:18:46 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'osgi'
|
2014-06-22 16:36:19 +02:00
|
|
|
apply plugin: 'nexus'
|
2014-06-08 13:18:46 +02:00
|
|
|
|
2014-06-22 16:36:19 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7.1'
|
|
|
|
}
|
2014-06-08 13:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'de.measite.minidns'
|
|
|
|
description = "A minimal DNS client library with support for A, AAAA, NS and SRV records"
|
|
|
|
sourceCompatibility = 1.7
|
2014-06-22 16:36:19 +02:00
|
|
|
version = 'git tag --points-at HEAD'.execute().text.trim()
|
|
|
|
isSNAPSHOT = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim() == 'master'
|
|
|
|
|
|
|
|
if (isSNAPSHOT) {
|
|
|
|
version = version + '-SNAPSHOT'
|
2014-06-08 13:18:46 +02:00
|
|
|
}
|
|
|
|
|
2014-06-12 09:29:35 +02:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2014-06-22 16:36:19 +02:00
|
|
|
nexus {
|
2014-06-23 20:56:38 +02:00
|
|
|
attachSources = true
|
2014-06-22 16:36:19 +02:00
|
|
|
attachTests = false
|
2014-06-23 20:56:38 +02:00
|
|
|
attachJavadoc = true
|
2014-06-22 16:36:19 +02:00
|
|
|
sign = true
|
2014-04-02 22:00:32 +02:00
|
|
|
}
|
|
|
|
|
2014-06-22 16:36:19 +02:00
|
|
|
modifyPom {
|
|
|
|
project {
|
|
|
|
name 'minidns'
|
|
|
|
description 'Minimal DNS library for java and android systems'
|
|
|
|
url 'https://github.com/rtreffer/minidns'
|
|
|
|
inceptionYear '2014'
|
|
|
|
|
|
|
|
scm {
|
|
|
|
url 'https://github.com/rtreffer/minidns'
|
|
|
|
connection 'scm:https://github.com/rtreffer/minidns'
|
|
|
|
developerConnection 'scm:git://github.com/rtreffer/minidns.git'
|
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'The Apache Software License, Version 2.0'
|
|
|
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
|
|
distribution 'repo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id 'rtreffer'
|
|
|
|
name 'Rene Treffer'
|
|
|
|
email 'treffer@measite.de'
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id 'flow'
|
|
|
|
name 'Florian Schmaus'
|
|
|
|
email 'flow@geekplace.eu'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-08 13:18:46 +02:00
|
|
|
}
|
|
|
|
|