update dependencies, prepare for Java 9

This commit is contained in:
Jörg Prante 2018-02-08 11:52:13 +01:00
parent d19450e2e1
commit e9b3b4fa5a
7 changed files with 52 additions and 14 deletions

View file

@ -3,7 +3,7 @@ plugins {
id "io.codearte.nexus-staging" version "0.11.0"
}
printf "Host: %s\nOS: %s %s %s\nJVM: %s %s %s %s\nGroovy: %s\nGradle: %s\n" +
printf "Host: %s\nOS: %s %s %s\nJVM: %s %s %s %s\nGradle: %s Groovy: %s Java: %s\n" +
"Build: group: ${project.group} name: ${project.name} version: ${project.version}\n",
InetAddress.getLocalHost(),
System.getProperty("os.name"),
@ -13,9 +13,9 @@ printf "Host: %s\nOS: %s %s %s\nJVM: %s %s %s %s\nGroovy: %s\nGradle: %s\n" +
System.getProperty("java.vm.version"),
System.getProperty("java.vm.vendor"),
System.getProperty("java.vm.name"),
gradle.gradleVersion,
GroovySystem.getVersion(),
gradle.gradleVersion
JavaVersion.current()
subprojects {
apply plugin: 'java'
@ -35,8 +35,8 @@ subprojects {
}
dependencies {
testCompile 'junit:junit:4.12'
wagon 'org.apache.maven.wagon:wagon-ssh:3.0.0'
testCompile "junit:junit:${project.property('junit.version')}"
wagon "org.apache.maven.wagon:wagon-ssh:${project.property('wagon.version')}"
}
sourceCompatibility = JavaVersion.VERSION_1_8
@ -62,12 +62,15 @@ subprojects {
classifier 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
}
artifacts {
archives sourcesJar, javadocJar
}
if (project.hasProperty('signing.keyId')) {
signing {
sign configurations.archives

View file

@ -1,5 +1,7 @@
group = org.xbib
name = z3950
version = 1.0.2
version = 1.1.0
xbib-cql.version = 1.1.1
xbib-cql.version = 1.2.0
junit.version = 4.12
wagon.version = 3.0.0

View file

@ -1,13 +1,47 @@
task xbibUpload(type: Upload, dependsOn: build) {
group = 'publish'
configuration = configurations.archives
uploadDescriptor = true
repositories {
if (project.hasProperty('xbibUsername')) {
mavenDeployer {
configuration = configurations.wagon
repository(url: uri('sftp://xbib.org/repository')) {
authentication(userName: xbibUsername, privateKey: xbibPrivateKey)
repository(url: uri(project.property('xbibUrl'))) {
authentication(userName: xbibUsername, privateKey: xbibPrivateKey)
}
pom.project {
groupId project.group
artifactId project.name
version project.version
name project.name
description projectDescription
packaging 'jar'
inceptionYear '2017'
url scmUrl
organization {
name 'xbib'
url 'http://xbib.org'
}
developers {
developer {
id user
name 'Jörg Prante'
email 'joergprante@gmail.com'
url 'https://github.com/jprante'
}
}
scm {
url scmUrl
connection scmConnection
developerConnection scmDeveloperConnection
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
}
}
@ -15,6 +49,7 @@ task xbibUpload(type: Upload, dependsOn: build) {
}
task sonatypeUpload(type: Upload, dependsOn: build) {
group = 'publish'
configuration = configurations.archives
uploadDescriptor = true
repositories {

Binary file not shown.

View file

@ -1,6 +1,6 @@
#Tue Jan 16 10:22:51 CET 2018
#Thu Feb 08 11:39:35 CET 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip

View file

@ -1,4 +1,2 @@
rootProject.name = name
include 'asn1'
include 'z3950'

View file

@ -5,5 +5,5 @@ plugins {
dependencies {
compile project(':asn1')
compile "org.xbib:cql:${project.property('xbib-cql.version')}"
compile "org.xbib:cql-common:${project.property('xbib-cql.version')}"
}