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" 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", "Build: group: ${project.group} name: ${project.name} version: ${project.version}\n",
InetAddress.getLocalHost(), InetAddress.getLocalHost(),
System.getProperty("os.name"), 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.version"),
System.getProperty("java.vm.vendor"), System.getProperty("java.vm.vendor"),
System.getProperty("java.vm.name"), System.getProperty("java.vm.name"),
gradle.gradleVersion,
GroovySystem.getVersion(), GroovySystem.getVersion(),
gradle.gradleVersion JavaVersion.current()
subprojects { subprojects {
apply plugin: 'java' apply plugin: 'java'
@ -35,8 +35,8 @@ subprojects {
} }
dependencies { dependencies {
testCompile 'junit:junit:4.12' testCompile "junit:junit:${project.property('junit.version')}"
wagon 'org.apache.maven.wagon:wagon-ssh:3.0.0' wagon "org.apache.maven.wagon:wagon-ssh:${project.property('wagon.version')}"
} }
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
@ -62,12 +62,15 @@ subprojects {
classifier 'sources' classifier 'sources'
from sourceSets.main.allSource from sourceSets.main.allSource
} }
task javadocJar(type: Jar, dependsOn: javadoc) { task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc' classifier 'javadoc'
} }
artifacts { artifacts {
archives sourcesJar, javadocJar archives sourcesJar, javadocJar
} }
if (project.hasProperty('signing.keyId')) { if (project.hasProperty('signing.keyId')) {
signing { signing {
sign configurations.archives sign configurations.archives

View file

@ -1,5 +1,7 @@
group = org.xbib group = org.xbib
name = z3950 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) { task xbibUpload(type: Upload, dependsOn: build) {
group = 'publish'
configuration = configurations.archives configuration = configurations.archives
uploadDescriptor = true uploadDescriptor = true
repositories { repositories {
if (project.hasProperty('xbibUsername')) { if (project.hasProperty('xbibUsername')) {
mavenDeployer { mavenDeployer {
configuration = configurations.wagon configuration = configurations.wagon
repository(url: uri('sftp://xbib.org/repository')) { repository(url: uri(project.property('xbibUrl'))) {
authentication(userName: xbibUsername, privateKey: xbibPrivateKey) 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) { task sonatypeUpload(type: Upload, dependsOn: build) {
group = 'publish'
configuration = configurations.archives configuration = configurations.archives
uploadDescriptor = true uploadDescriptor = true
repositories { 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 distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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 'asn1'
include 'z3950' include 'z3950'

View file

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